Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified __pycache__/main.cpython-310.pyc
Binary file not shown.
Binary file modified __pycache__/test_main.cpython-310.pyc
Binary file not shown.
34 changes: 28 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
add_numbers(-1, 4) -> 3
"""
def add_numbers(a, b):
pass
a==2 or a==-1
b==3 or a== 4
sum= a+b
return sum



# Exercise 2: Subtract Numbers
Expand All @@ -23,7 +27,12 @@ def add_numbers(a, b):
subtract_numbers(3, 5) -> -2
"""
def subtract_numbers(a, b):
pass
a== 5 or a==3
b== 3 or b==5

sum = a-b
return sum



# Exercise 3: FruitLoop
Expand All @@ -42,7 +51,10 @@ def subtract_numbers(a, b):
Loop
"""
def fruitloop(n):
pass
list= ['1', '2', 'Fruit', '4', 'Loop', 'Fruit']
n = 1 + n
for n in list:
return n


# Exercise 4: Fibonacci
Expand All @@ -66,7 +78,9 @@ def fibonacci(n: int):
find_max([-1,-5,-3]) -> -1
"""
def find_max(numbers: list):
pass
numbers= [1,2,3]




# Exercise 6: Find Minimum
Expand All @@ -78,6 +92,7 @@ def find_max(numbers: list):
find_min([-1,-5,-3]) -> -5
"""
def find_min(numbers: list):
num= [1,2,3]
pass


Expand All @@ -98,10 +113,17 @@ def find_min(numbers: list):
"""
class Person:
def __init__(self, name: str, age: int):
pass
self.name=name
self.age=age

name="Alice"
age=25

p=Person("Alice",25)


def greet(self):
pass
print("Hello , my name is ")



Expand Down
Loading