Iā€™m new in coding and I need help | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Iā€™m new in coding and I need help

Why Is the code doing this answer and not the one I want ? https://code.sololearn.com/c0LGvVojEBrJ/?ref=app

12th Sep 2019, 7:27 PM
Felix Pierre
2 Respostas
+ 2
Before input, you need to include int(input(ā€œYour text: ā€œ)) Python doesnā€™t evaluate the data type being inputted (it usually assumes you are inputting a string). So you need to manually convert an input to int.
12th Sep 2019, 7:43 PM
Glenn šŸ™
Glenn šŸ™ - avatar
+ 2
int(input())
12th Sep 2019, 7:49 PM
KfirWe
KfirWe - avatar