Skip to content

Commit cfdd676

Browse files
author
Your Name
committed
Fix syntax errors and undefined variables in Units 1-3
1 parent dd14475 commit cfdd676

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

Unit-1(basics)/var_practice2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
model_name = "Galaxy S24"
44
storage = "256GB"
55

6-
print("Mobile Brand =", Mobile_Brand)
7-
print("Model Name =", Model_Name)
8-
print("Storage =", Storage)
6+
print("Mobile Brand =", mobile_brand)
7+
print("Model Name =", model_name)
8+
print("Storage =", storage)

Unit-1(basics)/var_practice4.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
bike_name = "Yamaha R15"
3-
Price = 525000
4-
Mileage = "45 km/l"
3+
price = 525000
4+
mileage = "45 km/l"
55

6-
print("Bike Name =", Bike_Name)
7-
print("Price =", Price)
8-
print("Mileage =", Mileage)
6+
print("Bike Name =", bike_name)
7+
print("Price =", price)
8+
print("Mileage =", mileage)

Unit-2(strings)/escape_character.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939

4040
#4. \ ==> j ho tei bujhauna
41-
print('What\'s up')
42-
print("He said, \"He is learning Python\"")
41+
# print('What\'s up')
42+
# print("He said, \"He is learning Python\"")
4343

44-
print("Nepal\\\India\\China\Japan") [Bujhna lai]
44+
# print("Nepal\\\India\\China\Japan") #[Bujhna lai]

Unit-3(list_and_tuple)/practice_questions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797
#c. find second and 2nd last element of list
9898

99-
num.count
99+
# num.count
100100

101101
#d. find length of list.
102102
#d. ["orange", "watermelon"] add this list in that list.

0 commit comments

Comments
 (0)