+ 2

How can I use the int(input()) for the else-statements

I need an info for the int(input()). When and how can I use them?

2nd Jan 2021, 4:54 AM
Amanda Martin
Amanda Martin - avatar
3 Réponses
+ 3
Amanda Martin If you are looking for codes , you can find it in the Code section .Kindly use the search bar before posting Questions and do Read the lessons Patiently : https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/4434/?ref=app
2nd Jan 2021, 5:10 AM
Alphin K Sajan
Alphin K Sajan - avatar
0
You can do: type = int(input()) if type >= 100: print(type) else: print("No you can't!)
2nd Jan 2021, 5:05 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
0
It's very easy, use them when you need to get some data from user but you need to convert that data to numbers too🙂
2nd Jan 2021, 6:24 AM
Hacker-KR4636
Hacker-KR4636 - avatar