when writing a string, is parentheses () required? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

when writing a string, is parentheses () required?

6th Jul 2017, 1:59 PM
{Hades}
{Hades} - avatar
2 Answers
+ 1
no @hades you don't require any parantheses just you need to enclose it between """ inverted commas but if you are taking an input you need to, input() or when you are printing something print() (only in case ur using python 3 print() Is required.)
6th Jul 2017, 3:05 PM
TUSHAR DESAI
TUSHAR DESAI - avatar
0
Yes I stand by TUSHAR DESAI
25th Jul 2022, 4:17 PM
Rishav Bhattacharya
Rishav Bhattacharya - avatar