Skip to content

Commit 07a7b94

Browse files
authored
Update main.py
Signed-off-by: Bubbles The Dev <[email protected]>
1 parent fa3ea76 commit 07a7b94

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Python-Fundamentals-part2/main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# EXAMPLES NOT FOR USE
2+
# --------------------
3+
14
for row in range(3): # Outer loop iterates over rows
25
for col in range(3): # Inner loop iterates over columns
36
print(f"({row}, {col})", end=" ") # Print the current row and column, stay on the same line
@@ -32,4 +35,7 @@ def drive(self):
3235
# The __init__() method initializes the brand and model attributes.
3336
# The drive() method prints the brand of the car followed by "says drive!".
3437
# The object my_car is an instance of the Car class.
35-
# The drive() method is called on the my_car object, which prints "Toyota says drive!".
38+
# The drive() method is called on the my_car object, which prints "Toyota says drive!".
39+
40+
# EXAMPLES NOT FOR USE
41+
# --------------------

0 commit comments

Comments
 (0)