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

16th May 2018, 9:32 AM
Anmol Dhakal
4 Answers
+ 3
You can check for the time for varying outputs. Why, though?
16th May 2018, 10:09 AM
Timon PaĂźlick
+ 1
Let's Lyrics I did not understand your question.
16th May 2018, 9:39 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 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
16th May 2018, 9:54 AM
Anmol Dhakal
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")
16th May 2018, 10:19 AM
Anmol Dhakal