+ 1
Привет друзья проблемы с кодом (TypeError 'int'
Хотел сделать простой код по вычислению но не справился x = str(input('Куда идёт змея?')) y = (input('сколько секунд?')) d = y * 3 print(d)
5 odpowiedzi
+ 2
Please always tag the programming language you're asking about. Assuming that this is python you can do this:
y = int(input())
In Python input is always string type. If you want a different type you have to convert it. Use float() instead of int() if you want to use decimals.
+ 1
I don't see a mistake.
What was your input?
+ 1
y = int(input ....
+ 1
thanks for your help, very nice!
+ 1
🤝