Ultranotes 2

Mon 30 June 2025
# Topic: Loops
while True:
    print('Break')
    break
# Topic: NumPy
import numpy as np
a = np.array([1, 2, 3])
print(a + 5)
# Topic: Decorators
def log(func):
 def wrapper():
  print('Call')
  func()
 return wrapper
@log
def say(): print('Hi')
say()
# Topic: Mini Projects
# Palindrome check
def is_pal(s): return s …

Category: basics

Read More

Weather

Mon 30 June 2025
import numpy as np
import matplotlib.pyplot as plt
# Simulated temperature data for June
temps = np.random.normal(35, 5, 30)  # 30 days of June
temps
array([29.41326559, 34.80917293, 26.87578012, 26.85251075, 38.34895339,
       25.63473964, 39.60417612, 39.14748075, 44.21751801, 30.73423255,
       31.87543814, 38 …

Category: basics

Read More
Page 5 of 5

« Prev