Skip to content

Files

Latest commit

 

History

History

03-Print-Variables-In-The-Console

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

03 Print more Variables in the console

You can also print more than one variable in the same print() function by separating the variables with a comma ,. Like this:

my_variable = 'hello'
my_second_variable = "world"
print(my_variable, my_second_variable)  # --> hello world

📝 Instructions:

  1. Declare two new variables called color and item, and assign the value "red" and "marker" respectively to it.

  2. Then, print their values on the console (you may have to scroll up in the terminal to see it!).