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.
1 Odpowiedź
+ 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