From which symbol we can separate string and variable in print function in python.
(a) .(comma) (b) (B) + (pluse) (c) : semicolon (d) none
Answers
Answered by
0
using comma
name = "Chamanlal"
print("Hi", name)
You can use + too, but you need to convert non string values to string for example:
age = 16
print("My age is " + str(age))
Similar questions
Physics,
2 months ago
English,
2 months ago
Social Sciences,
5 months ago
Biology,
5 months ago
Computer Science,
10 months ago
Geography,
10 months ago