PYTHON:1.Assume that message is a
Stringvariable. Write a statement to display its value on standardoutput. 2.Assume that word is a
Stringvariable. 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,
numand
costhave been assigned values. Write a single statement that outputs
numand
costto standard output.Print both values (
numfirst, then
cost), 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 of
second. 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 the
firstvariable. 5.Write some code that reads in a name and an age into thevariables
nameand
age. It thenprints the message “The age of
NAMEis
AGE” on aline by itself, where
NAMEand
AGErepresent thevalues read into the variables
nameand
agerespectively. 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
ageneeds to be aninteger, not a string. 6.Write some code that reads a value representing a name intothe variable
namethen 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. . . .