Computer Science, asked by silk6682, 5 months ago

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 valeriy69
0

using comma

\small\mathsf\color{pink}{Example\: using\: python\: 3}

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))

\small\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions