+ 1

About Python 3 Tutorial : ( (I'm on) Simple Input & Output)

currently I'm on this part on the python 3 Tutorial introduction (See title ) where it says; >>> input("Enter something please: ") Enter something please: This is what\nthe user enters! 'This is what\\nthe user enters!')<<? (maybe duplicate?? I don't know. ) I'm confused What is that even suppose to mean ? I'm new to programming and I did the " Try it yourself" Box where you enter your Function/code, this is what i got : https://code.sololearn.com/ceFUmW8TIqU5/#py I don't know if you can see the link but that's what I put. Cause it says enter /n and on the bottom it says print (s) so i just put print(s)//n cause [Me] the newcomer to programming that i am. was curious why they said "Enter something please" in the middle of () parenthesis or why they put the /n next to the statement: this is what\nthe user enters! I clicked Run and it says "Seems like your Program Requires input" then in the bottom gives a box that says " Split multiple inputs into separate lines" Then allows me to type in this box ( Why does it allow me to type in this box? what is this box for?) even tho i did put input, wait did I put an input in order to make the program run in output? hmm i thought I did but apparently NOT!! I don't know please someone correct me If I'm wrong. Is this a good explanation? I'm not sure I'm very doubtful and confused send instructive criticism plz thanks ~~ SoloLearn Community

13th Jan 2020, 4:00 AM
Sora Yuri
Sora Yuri - avatar
2 Respuestas
+ 3
Hello and welcome Sora Yuri ✋ Come and take a look at this code. Well, just run this code really, it provides a decent insight about how input to codes works in SoloLearn. About the \n thing, you can open the comments section in the lesson. People discuss a lot about each subject. It helps for me then, hope it works for you too 👍 https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
13th Jan 2020, 4:25 AM
Ipang
0
Thanks guys i think i finally figured it, after 5 days reading your comments and other posts plus the solo learn concept introduction took me awhile haha The only thing i don't understand is... The 2nd string is empty. Why ? is that needed or no ? how come I couldn't put print(s) on the 2nd string ? and why is the input s = input does it have to be only s ? why letters ? thank ! for the advice ...
14th Jan 2020, 5:56 AM
Sora Yuri
Sora Yuri - avatar