+ 1

What is wrong with a code? Please, explain, I don’t get it 😭

https://code.sololearn.com/cMeW7X0Jpmsl/?ref=app

16th Oct 2022, 5:55 PM
ПолинаС
6 odpowiedzi
+ 2
input() accept as string form. So need convertion to desired type.. To convert to int value use int() a = int( input() )
16th Oct 2022, 6:02 PM
Jayakrishna 🇮🇳
+ 2
Remember that input() returns a string. If you want to use it as a number, you need to convert it, for example a = int(input())
16th Oct 2022, 6:02 PM
Lisa
Lisa - avatar
+ 2
Thanks!)
18th Oct 2022, 3:49 AM
ПолинаС
+ 1
To use an inpit for a number use a=int(input())
17th Oct 2022, 5:09 PM
Nordi Kid
0
Oh, thank you so much, I finally got it!)
16th Oct 2022, 6:04 PM
ПолинаС