+ 2

Which is correct??

(1) >>>print('blablabla') (2) >>>('blablabla') (3) print('blablabla')

19th Jul 2020, 8:14 PM
ItzGodwin
ItzGodwin - avatar
12 Réponses
+ 3
(3). You never need to add >>>. Whether in console or in IDE.
19th Jul 2020, 8:20 PM
Jayakrishna 🇮🇳
+ 7
3rd one
20th Jul 2020, 3:31 AM
Amit Kumar
Amit Kumar - avatar
+ 3
Lol 😂😂
19th Jul 2020, 9:02 PM
Ritish
Ritish - avatar
+ 2
print("text") is correct way... In python console, it it will ask you enter by displaying >>> itself there.. Like command prompt.. So there without print function, just enter "hello" will display output. But in IDE, in playground.. You need to write print( "text") So there >>> mentioned for understanding purpose only.. Never you need to put that anywhere.
19th Jul 2020, 8:43 PM
Jayakrishna 🇮🇳
+ 2
In command prompt or IDE we have to use 1st and in text editor like jupyter we have to use 3rd
20th Jul 2020, 3:35 PM
Bathini Swapna
Bathini Swapna - avatar
+ 1
Yeah 😂
19th Jul 2020, 8:48 PM
Ritish
Ritish - avatar
+ 1
Ritish 😂 😂
19th Jul 2020, 9:08 PM
ItzGodwin
ItzGodwin - avatar
0
Jayakrishna🇮🇳 i dont understand, please explain. I am a beginner
19th Jul 2020, 8:36 PM
ItzGodwin
ItzGodwin - avatar
0
Jayakrishna🇮🇳 😂 😂 i get it, thanks man.
19th Jul 2020, 8:45 PM
ItzGodwin
ItzGodwin - avatar
0
Ritish 😂 😂 >>>print('yeah what')
19th Jul 2020, 8:53 PM
ItzGodwin
ItzGodwin - avatar
0
KING∆OP™ please explain
20th Jul 2020, 6:40 AM
ItzGodwin
ItzGodwin - avatar
0
By the way, a string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes, or triple quotes.
21st Jul 2020, 1:18 PM
Bits!