Quick actions

cmd+k|ctrl+k

Navigation

Languages

17-09-2025 Ex01

Snippet info

Language

Python

Visibility

public

Author

kwahmail

Created

2025-09-17T11:59:27.546349Z

Updated

2025-09-17T11:59:27.546349Z

expression_result=(7-4)+(((3*6)/(2**2))%5)
expression_result=10+3*2<20 and 15% 4== 3 or not 5-3*2>0
result = not 10 // 3 == 3 or 8 % 3+1 ==3 and 7 | 2 >5
result4 = 5+3 if 2**3>7 else 4*6 if 7<8 else 5-10/2
result2 = 10>5 and 3*3+1 <=10 or not 5!=5 and 4*2
result1 =3+5**2&15|2**3 if 8% 3>1 else 1 ^ 7 & 4
print(expression_result)

#leapyear : year is muliple of 4 and not multiple of 100 or year is multiple of 400
year = 2008
if (year % 4 == 0 and year % 100 !+0):
    print( True)
elif(year % 400 ==0):
    print(True)
else:
    print(False)
    
print((year % 4 == 0 and year % 100 !=0) or (year % 400 ==0))

x=True if (year % 4 == 0 and year % 100 !=0) else if year % 400 == 0 else
INFO