how to get the remainder in python
a = 10
b = 3
c = a % b
print(c) # Prints 1
how to get the remainder in python
a = 10
b = 3
c = a % b
print(c) # Prints 1
how to calculate division with remainder in python
Modulo Operator (Python)
x % y
Example: 9 % 2
9 ÷ 2 = 4 R 1
9 % 2 = 1
how to use a function to find the average in python
avreage_cost = cost
avg = sum(avreage)/len(avreage)
print("The average amout you spent is ", round(avg,2))
how to use a function to find the total in spyder python
toata1= sum(total)
print("total1")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us