Answer to Question #257705 in Python for Aarrya

Question #257705

Two variables, num and cost have been declared and given values: num is an integer and cost is a double. Write a single statement that outputs num and cost to standard output. Print both values (num first, then cost), separated by a space on a single line that is terminated with a newline character. Do not output any thing else


1
Expert's answer
2021-10-27T18:51:12-0400
#Declaring num variable and assigning integer value
num = 243


#Declaring cost variable and assigning double value
cost = 999.99


#Printing num and cost in a single line with whitespace between them
print(num, cost)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog