Skip to content

Commit

Permalink
upade conditional statements
Browse files Browse the repository at this point in the history
  • Loading branch information
stalj committed Sep 16, 2024
1 parent 7fbde37 commit 8844c54
Show file tree
Hide file tree
Showing 3 changed files with 458 additions and 0 deletions.
Binary file removed 02-TypesAndVariables/02-TypesAndVariables.docx
Binary file not shown.
4 changes: 4 additions & 0 deletions 02-TypesAndVariables/02-TypesAndVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ [email protected]
1. Two variables x and y have values of 7 and 34. Write a program that swaps variable values (x should be 34 and y should be 7). Use an additional, auxiliary variable.

```python
###
# A program for swapping two varable values
#
x = 7
y = 34
z = 0 # additional, auxiliary variable
Expand All @@ -185,6 +188,7 @@ [email protected]
# swap the values
...
...

print("After swapping: x=", x, "y=", y)
```

Expand Down
Loading

0 comments on commit 8844c54

Please sign in to comment.