Ask Question
5 October, 20:49

Write a single statement that will print the message "first is " followed by the value of first, and then a space, followed by "second = ", followed by the value of second. Print everything on one line and go to a new line after printing. Assume that first has already been declared as a double and that second has been declared as an int. Assume also that the variables have already been given values.

+3
Answers (1)
  1. 5 October, 22:37
    0
    print ("first is "+str (first) + " second = "+str (second))

    Explanation:

    The above written print statement is in python language. If first and second are strings then we need not to use str then we only have to write variable name. This statement prints the given in one line according to the question and it goes to new line after printing.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a single statement that will print the message "first is " followed by the value of first, and then a space, followed by "second = ", ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers