0
if input is given nothing then how to make the statement print("hello world")
can it be possible using if else and elif statemetns for do this if possible then please give me the code and explain it
5 odpowiedzi
+ 3
You can check for the time for varying outputs. Why, though?
+ 1
Let's Lyrics I did not understand your question.
+ 1
i mean that is if i take many inputs wathere which can be zero also or any number in case of int and the if else and elif statement should chose the empty input statement like a=input()(input given 6)and b=input()(input given no thing so the statements should choose the empty one and do what the work is to be done by b
0
a=empty
if a!=input(empty):
print("hello")
else:
print("no")
i mean this in the place of empty isn't there any code to act like empty
and make the print statements work if we put no thing in while the program is asking for input it should print("hello")