0

How do you add a variable in quotation marks?

I want to make the code ask, What is your name. It will save the answer in a variable then say, so you call yourself ‘(the variable)’ huh? I dont know how to add the variable in quotation marks.

27th Mar 2019, 10:15 AM
Yannis Ho
Yannis Ho - avatar
1 Resposta
+ 1
Yannis Ho It’s easy in Python, we can use both “str” and ‘str’ as long as they are matching. “str’ is incorrect. So when you use one to define a string you can use the other inside. I posted an example for you here: https://sololearn.com/compiler-playground/c4j37UmUPr6D/?ref=app
20th Jun 2024, 5:21 AM
Paweł Dudek