+ 1

Как сделать input в python переменной?

например: y = input("") if (input=54): print ("true") else: print ("error") что нибудь такое есть?

12th May 2018, 11:43 AM
agurg
agurg - avatar
1 Resposta
+ 6
Есть. Примерно так: y = int(input()) if y == 54: print ("true") else: print ("error")
12th May 2018, 11:53 AM
NezhnyjVampir
Quente hoje
.
1 Votes
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes
Create Agent
0 Votes