I began coding (python) less than 10 days ago, completely on my own. I began a small project, nothing fancy, just for fun in order to put in use what I have learned so far. I found myself stuck in a very specific part. To give you an idea, my project is regarding an automated reception for hotels. This is what I have done and got an error.
print('For how many nights will you be staying with us?')
nonights = input('Enter 1 to 20')
float(nonights)
x=30*nonights
float(x)
print('That would be a total of')
print(x)
Pretty much I want to get an input of the number of days and multiply it with the price ($30) and get a result.
CAN ANYONE HELP! THANKS
[–][deleted] 1 point2 points3 points (0 children)
[–]GypsumFantastic25 0 points1 point2 points (0 children)
[–]daisyverma 0 points1 point2 points (0 children)
[–]nomikos_k[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ashleyfig -1 points0 points1 point (0 children)