diff --git a/03_Day_Operators/03_operators.md b/03_Day_Operators/03_operators.md index 0fcfeb9..987a118 100644 --- a/03_Day_Operators/03_operators.md +++ b/03_Day_Operators/03_operators.md @@ -75,7 +75,7 @@ print('Division: ', 7 / 2) # 3.5 print('Division without the remainder: ', 7 // 2) # 3, gives without the floating number or without the remaining print ('Division without the remainder: ',7 // 3) # 2 print('Modulus: ', 3 % 2) # 1, Gives the remainder -print('Exponentiation: ', 2 ** 3) # 9 it means 2 * 2 * 2 +print('Exponentiation: ', 2 ** 3) # 8 it means 2 * 2 * 2 ``` **Example:Floats** diff --git a/03_Day_Operators/day-3.py b/03_Day_Operators/day-3.py index b140288..c984a82 100644 --- a/03_Day_Operators/day-3.py +++ b/03_Day_Operators/day-3.py @@ -10,7 +10,7 @@ print('Division: ', 7 / 2) print('Division without the remainder: ', 7 // 2) # gives without the floating number or without the remaining print('Modulus: ', 3 % 2) # Gives the remainder print ('Division without the remainder: ', 7 // 3) -print('Exponential: ', 3 ** 2) # it means 3 * 3 +print('Exponential: ', 2 ** 3) # 8 it means 2 * 2 * 2 # Floating numbers print('Floating Number,PI', 3.14)