What is the difference between (30) and (30,) in python?
Answers
Answered by
15
The difference between (30) and (30,) is as follows:
Explanation:
- The (30) represents a number 30. when the user writes it with the help of print statement like-- "print(30)", then it will prints 30 as output. When the user assigns the value 30 to any variable, then that variable holds the value as 30.
whereas,
- The (30,) represents also the number 30 with the separator ',' to holds another value. when any user wants to prints multiple values at a time then the value can be written with the help of ',' separator. for example:- "print(30,40)" will prints 30 and 40 as the output.
Learn More:
- Python : https://brainly.in/question/14689905
Similar questions
Chemistry,
5 months ago
Computer Science,
5 months ago
Computer Science,
10 months ago
Biology,
1 year ago