Graduation Sentence with Variables

Write a program that stores your name and year of graduation into variables, and displays their values on the screen.

Make sure that you use two variables, and that your variable names are good: the name of a variable should always relate to its contents.

My name is Juan Valdez and I'll graduate in 2010.

In the example above, the values "Juan Valdez" and 2010 were stored in variables before printing.

You're doing it wrong if your program looks like this:

    print("My name is Juan Valdez and I'll graduate in 2010.")

It is wrong because it does not use any variables. You will still have to use print(), of course, but your statement will have two variables in it along with words in quotes.




©2017 Graham Mitchell