0
Why does a string give no output ?
Ex: input: 'Hello world' Output:No output
3 Answers
+ 3
Muzammil Thousif , please show us your code.
+ 2
Its because you didnt print it.
>>>print('Hello world!')
>>>Hello world!
Running code on here is more like and IDE where you have to actually type print(whatever)
If you download Termux and type python when you open it you will notice a difference when using it. Termux is just an interpreter. Meaning it takes lines one at a time as you enter them. These will work in Termux
When you enter:
>>>'Hello world!' #then hit enter...
>>>Hello world!
Same with basic math:
>>>2 + 2 #hit enter
>>>4
+ 2
Muzammil Thousif As you take input from keyboard in the same way there is a option to show output mean you should print to get output.