Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 49dbbc5

Browse files
Update README.md
1 parent 75d86d3 commit 49dbbc5

File tree

1 file changed

+7
-10
lines changed
  • exercises/03-Print-Variables-In-The-Console

1 file changed

+7
-10
lines changed
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
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!).

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /