:: in python
#[start:end:step]
>>> range(10)[::2]
[0, 2, 4, 6, 8]
:: in python
#[start:end:step]
>>> range(10)[::2]
[0, 2, 4, 6, 8]
logical operators in python
condition1 and condition2
condition1 or condition2
not condition
or in python
# Syntax for Boolean expression with or in Python
exp1 or exp2
not in python
# False
print(not(1 == 1))
# True
print(not(1 == 2))
! in python
#The (!) is the not operator in Python, (!=) means not equal to.
if 2!=10:
print("2 isn't equal to 10.")
elif 2=10:
print("2 is equal to 10.")
#Prints "2 isn't equal to 10." as 2 isn't equal to 10. Is it?
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