decorators

This commit is contained in:
Hizenberg469
2025-03-19 15:46:10 +05:30
parent 98558bab53
commit 00197cf3c5
5 changed files with 628 additions and 12 deletions

View File

@@ -1,13 +1,7 @@
def j(n):
if n == 1:
return 1
if n % 2 == 0 :
return 2 * j(n/2) - 1
else:
return 2 * j((n-1)/2) + 1
def main():
print("This is the main function.")
for i in range(1,33):
print(f'{i} : {j(i)}')
print('hello world')
if __name__ == "__main__":
main()