File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Python-Fundamentals-part2 Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ # EXAMPLES NOT FOR USE
2+ # --------------------
3+
14for 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+ # --------------------
You can’t perform that action at this time.
0 commit comments