0

Write a Program to check whether the given number is in between 1 to 100

Can u solve this question python program

27th May 2021, 5:12 AM
Sai Eshwar
Sai Eshwar - avatar
11 odpowiedzi
+ 6
Hint - 1) Take the number as input. 2) Check whether it is greater than 0 and less than or equal to 100. 3) If true, it is between 1 to 100 else not. If you don't know the syntax of if else, go and study python.
27th May 2021, 5:26 AM
MrMysterious5
+ 4
Jan Markus yeah... finally your solution is a good one. If Sai Eshwar understands there will be some learning.
27th May 2021, 7:25 AM
Oma Falk
Oma Falk - avatar
+ 3
Jan Markus 😄😄😃
27th May 2021, 6:22 AM
Samira
Samira - avatar
+ 2
Jan Markus feel free😁
27th May 2021, 6:37 AM
Oma Falk
Oma Falk - avatar
+ 1
Hint :- Just use "in" operator and range()
27th May 2021, 5:30 AM
sarada lakshmi
sarada lakshmi - avatar
0
Thank u guys for explaining me I got my answer
27th May 2021, 11:31 AM
Sai Eshwar
Sai Eshwar - avatar
0
s=int(input()) print(s in range(1,101))
27th May 2021, 1:30 PM
RuntimeERROR
RuntimeERROR - avatar
0
numb = int(input ()) If numb in list(range(1,101)): print ('number is between 1 to 100') else : print ('number is not between 1 to 100')
28th May 2021, 2:44 PM
Evandro Simorangkir
Evandro Simorangkir - avatar
0
4th Nov 2022, 6:22 AM
Shaista Parveen
Shaista Parveen - avatar
0
😀😀😀
23rd Jun 2023, 2:41 AM
NIKHIL Gamer
NIKHIL Gamer - avatar
0
hhbhgggfgff
28th Nov 2023, 12:55 PM
Rashmi Chikate
Rashmi Chikate - avatar