+ 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?

22nd Apr 2018, 7:54 PM
arbaaz
2 Respostas
+ 1
Thank you all for your answers.
23rd Apr 2018, 8:45 PM
arbaaz
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
22nd Apr 2018, 8:26 PM
jerome