File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
exercises/03-Print-Variables-In-The-Console Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1- ---
2- tutorial : " https://www.youtube.com/watch?v=Ki1LaUKhPgU"
3- ---
1+ # ` 03 ` Print more Variables in the console
42
5- # ` 03 ` Print the Variables in the console
6-
7- You can also use the ** print** function to print variables in the console. It's a great way to check their current value, like this:
3+ You can also print more than one variable in the same ` print() ` function by separating the variables with a comma ` , ` . Like this:
84
95``` py
10- my_super_variable = ' hello'
11- print (my_super_variable)
6+ my_variable = ' hello'
7+ my_second_variable = " world"
8+ print (my_variable, my_second_variable) # --> hello world
129```
1310
1411## 📝 Instructions:
1512
16- 1 . Declare a new variable called ` color ` and assign the value ` "red" ` to it.
13+ 1 . Declare two new variables called ` color ` and ` item ` , and assign the value ` "red" ` and ` "marker" ` respectively to it.
1714
18- 2 . Then, print its value on the console (you may have to scroll up in the terminal to see it!).
15+ 2 . Then, print their values on the console (you may have to scroll up in the terminal to see it!).
You can’t perform that action at this time.
0 commit comments