You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 05-operators.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ print(str1 + str2) # Hey Jude
108
108
109
109
## More on Assignment Operators
110
110
111
-
_Multiple assignment at once_
111
+
**Multiple assignment at once**
112
112
113
113
```
114
114
@@ -118,7 +118,7 @@ print(y) # 6
118
118
119
119
```
120
120
121
-
_Compound Assignment Operators_
121
+
**Compound Assignment Operators**
122
122
123
123
```
124
124
@@ -132,15 +132,15 @@ x -= 10 # x = x - 10
132
132
133
133
##Program to Compute Discount
134
134
135
-
_Suppose you are a university student, and you need to pay 4535 dollars tuition fee for the next semester._
135
+
**Suppose you are a university student, and you need to pay 4535 dollars tuition fee for the next semester.**
136
136
137
-
_The college is giving you a discount of 10% on the early payment of your tuition fee. Since it's a good offer, you decided to make an early payment. Can you find out how much money you have to pay?_
137
+
**The college is giving you a discount of 10% on the early payment of your tuition fee. Since it's a good offer, you decided to make an early payment. Can you find out how much money you have to pay?**
138
138
139
139
```
140
140
fee = 4530
141
141
142
142
discount_percent = 10
143
-
discount_amount = discount_percent/100\*fee
143
+
discount_amount = discount_percent/100*fee
144
144
discounted_fee = fee - discount_amount
145
145
146
146
print("Fee after discount:", discounted_fee, "dollars") # 4081.5
0 commit comments