Untitled

Run Settings
LanguagePython
Language Version
Run Command
#leapyear:year is multiple of 4 and not mulitple of 100 or #year is multiple of 400 def checkleap(year): return year % 4==0 and not year % 100==0 or year % 400==0 print (checkleap(2024)) x = 0 or None or [] or {}or '' or False x = 1 or True and {"name": "john"} and [1] and (1,) print(x) try: x='1' y=0 x/y except ZeroDivisionError: print("data error") y=1 except TypeError: try: print('data type error') print(int(x)/y) except ZeroDivisionError: print("second error") from dio import a,b,c b() a() def a(): print("function a from main.py") a() print (c) import tria tria.a() from dio import a as aa aa() def a (): print("function a from main.py") a() import tria tria.a() from tessera import* print(c) a() s=[1,'a',3,'a',1,2,'b',3,4,'b',5,6,7,1,2,3,4,6,7,8] print(list(set(s)))
def a(): print("I am from dio.py function a") def b(): print("I am from dio.py function b") c = 'Constant'
def a(): print("I am from tria.py function a")
def a(): print("I am from tessera.py function a") def b(): print("I am from tessera.py function b") c = 'Constant'
Editor Settings
Theme
Key bindings
Full width
Lines