PYTHON:1.Assume that message is a String variable. Write a statement to display its value on standardoutput.2.Assume that word is a String variable. Writea statement to display the message “Today’s...

PYTHON:1.Assume that message is a
Stringvariable. Write a statement to display its value on standardoutput. 2.Assume that word is a
String
variable. Writea statement to display the message “Today’s Word-Of-The-Day is: “followed by the value of  word on a line by itself onstandard output. 3.Two variables,
num
and
costhave been assigned values. Write a single statement that outputsnum
and
cost
to standard output.Print both values (num
first, thencost), separated by a space on a single line thatis terminated with a newline character. Do not output any thingelse. 4. Write a single statement that will print the message “firstis” followed by the value of
first, and then aspace, followed by “second = “, followed by the value ofsecond. Print everything on one line and go to anew line after printing. Assume that the variables have alreadybeen given values. Instructor Notes: There should be a spacebetween the string “first is” and the value of thefirst
variable. 5.Write some code that reads in a name and an age into thevariables
name
and
age. It thenprints the message “The age of
NAME
is
AGE” on aline by itself, where
NAME
and
AGE
represent thevalues read into the variablesname
andage
respectively. For example, if your code readin “Rohit” and 70 then it would print out “The age of Rohit is 70″on a line by itself. There should NOT be a period in theoutput.Instructor Notes: The
age
needs to be aninteger, not a string. 6.Write some code that reads a value representing a name intothe variable
name
then prints the message”Greetings, NAME!!!” on a line by itself where NAME is replaced thevalue that was read into
name. For example, ifyour code read in “Hassan” it would print out “Greetings,Hassan!!!” on a line by itself. Instructor Notes: If you see a (backslash) in front of theexclamation marks, it shouldn’t be there; some browsers seem toerroneously display it. . . .
Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here