0
When to add " or ( ) or both.
Having trouble understanding when to and when not to. https://code.sololearn.com/cvgkuHg5JZCF/?ref=app
1 ответ
+ 1
You need to do ("x") only as a function arguement for example print is a function, so to print x, you must do
print("x")
When using "x" it is only a string, you can use it in string variable declarations:
x = "x"
When using only ( ) arguements are needed inside ( )
and arguements can be variables or strings
tuple(x)
tuple("x")
tuple(1)