So my input question is "How many participants?", i have used int, but i want to limit the numbers from 1 to 30. Any tips? šŸ˜… | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

So my input question is "How many participants?", i have used int, but i want to limit the numbers from 1 to 30. Any tips? šŸ˜…

Beginner in python

16th Sep 2019, 8:15 PM
W. Khalid
3 Respostas
+ 2
-input(int(variable name)) -if statement to make sure the input is between 1-30 -else statement to tell the input they are out of bounds
16th Sep 2019, 8:30 PM
Glenn šŸ™
Glenn šŸ™ - avatar
+ 4
Use if else statement
16th Sep 2019, 8:25 PM
Qudusayo
Qudusayo - avatar
+ 1
Thank you both šŸ™šŸ» i will try it out tommorow ā˜ŗļø
16th Sep 2019, 8:35 PM
W. Khalid