Skip to content

Commit a899c67

Browse files
authored
Update README.md
1 parent c39e93c commit a899c67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Assign Value to Multiple Variables
4444
Python allows you to assign values to multiple variables in one line:
4545

4646
Example
47+
4748
````
4849
x, y, z = "Orange", "Banana", "Cherry"
4950
print(x)
@@ -52,6 +53,7 @@ print(z)
5253
```
5354
5455
And you can assign the same value to multiple variables in one line:
56+
5557
```
5658
Example
5759
x = y = z = "Orange"
@@ -86,6 +88,7 @@ y = 10
8688
print(x + y)
8789
```
8890
If you try to combine a string and a number, Python will give you an error:
91+
8992
```
9093
x = 5
9194
y = "John"

0 commit comments

Comments
 (0)