Question
Consider a variable var with some value in it.How can we achieve an output of this format:
"This is the value of variable one;<value of variable>"?
1.print('this is the value of variable one:'
2.print(this is the value of variable', one, ':')
3.print(This is the value of variable one:', var)
4.print(this is the value of variable one: one)
"This is the value of variable one;<value of variable>"?
1.print('this is the value of variable one:'
2.print(this is the value of variable', one, ':')
3.print(This is the value of variable one:', var)
4.print(this is the value of variable one: one)
Answers
There are no human answers yet.
Answered by
GPT 3.5
The correct option is:
3. print("This is the value of variable one:", var)
By using the comma (,) between the strings and the variable, we can concatenate them in the print statement and achieve the desired output format.
3. print("This is the value of variable one:", var)
By using the comma (,) between the strings and the variable, we can concatenate them in the print statement and achieve the desired output format.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.