what does += mean in Python
x = 0
while x < 5:
print(x)
x += 1 #the x += 1 expression is a shortend version for x = x + 1
what does += mean in Python
x = 0
while x < 5:
print(x)
x += 1 #the x += 1 expression is a shortend version for x = x + 1
// meaning in python
## // Returns the integer value of the quotient
eg 906 / 100 = 9.06
906 // 100 = 9
what does == mean in python
if a == 2: # Compares whether a is equal to 2
print a
//= python meaning
#Performs floor-division on the values on either side. Then assigns it to the expression on the left.
>>> a=6
>>> a//=3
>>> print(a)
2
what does == mean in python
# in python == means that is a comparisson operator meaning it compares if one
# variable equals the other. Instead of using one = since that will assign
# a value we use ==
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