+ 1

pyhton strings

i still dont understand python strings. lets say if i do a simple line of code, etc. print ("hello") why would i then have to put this under the line of code print("hello") "hello" it seems pointless, i must be missing something. can anyone help?

21st Dec 2018, 10:11 PM
Grug
7 Respuestas
+ 4
>print("hello") >"hello" unlike what you're thinking ,this is isn't two lines of code,its a line of code..followed by its output,thats how codes in the lessons are structured
21st Dec 2018, 10:29 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 3
Where did you take this from? You don't have to put anything besides the print method. Maybe you misunderstood something :)
21st Dec 2018, 10:22 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
Pay attention to the symbol ">>>" in the code. This is the user input character of the Python console.
21st Dec 2018, 10:44 PM
Solo
Solo - avatar
+ 1
the python lesson called strings gives me the impression that its needed/done by other people
21st Dec 2018, 10:26 PM
Grug
0
Jzjns
28th Jan 2024, 6:08 PM
Mohmed Tamer
Mohmed Tamer - avatar
- 1
>>>" "
13th Apr 2020, 6:36 PM
Ajay
Ajay - avatar