how to print the runtime input in double quotes( " " ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to print the runtime input in double quotes( " " )

input : my name is bharath output : "my name is bharath"

12th Sep 2018, 5:28 AM
bharath
bharath - avatar
3 Answers
+ 3
You can try it like this: print('"'+input()+'"') (just for clarity - those are apostrophe-doublequote-apostrophe pairs each time)
12th Sep 2018, 5:37 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
12th Sep 2018, 5:36 AM
Andrzej J1ni7a
Andrzej J1ni7a - avatar
0
If you use single quotes on the outside, you can use double quotes in your string. print(' "Whatever" ')
12th Sep 2018, 7:38 AM
HonFu
HonFu - avatar