0

When to add " or ( ) or both.

Having trouble understanding when to and when not to. https://code.sololearn.com/cvgkuHg5JZCF/?ref=app

25th Dec 2017, 5:56 AM
Brandon Gossett
Brandon Gossett - avatar
1 Answer
+ 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)
25th Dec 2017, 6:31 AM
MrCoder
MrCoder - avatar