+ 1
I need help with my code, what am I doing wrong here
NameOfCustomer = input('Please enter name of customer ') MonthlyBillStatus = input('Please Enter the plan name of ', NameOfCustomer ) MonthlyBill = int(input('Please enter standard bill cost ')) TaxAmount = int(input('Please enter tax percentage amount ')) AllowedDayTimeMinutes = int(input('Please enter day time minutes amount allowed under plan ')) AllowedNightTimeMinutes = int(input('Please enter night time minutes amount allowed under plan ')) MonthlyDayTimeMinutes = int(input('Please enter amount of day
4 ответов
+ 4
If you look at your second line, you will see a comma. That separates first and second arguments you are passing to input.
If you are talking about the two lines I posted, they should replace your lines, if you agree with my changes. You might have something else in mind or maybe your code did get truncated.
+ 3
The code posted had two errors. Line 2 had a second argument to input, which needs to be deleted or more likely concatenated to the prompt:
MonthlyBillStatus = input('Please Enter the plan name of '+NameOfCustomer)
The last line was most likely truncated as it is missing the closing quote and 2 closing parentheses:
MonthlyDayTimeMinutes = int(input('Please enter amount of day'))
In the future, please link your code.
+ 1
I will, thank you but what do you mean second argument and how would you put these two lines?
+ 1
thank you very much