+ 1
float and int
When working out an expression, for example; float("210" * int(input("Enter a number:" ))) Would you look at what's between the brackets, and then convert them to numbers? In Python do we work from right to left or left to right?
3 Respuestas
+ 1
Thank you all for your answers.
0
Here, 210 is a string. Your input will repeat this string n times then will convert this repetition in a float. https://code.sololearn.com/cQ4Vb21yr57c/?ref=app