I’m new in coding and I need help | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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