Skip to content

Commit 39c03af

Browse files
committed
python development
1 parent 99e739d commit 39c03af

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

.idea/workspace.xml

+10-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

14.functions.py

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# # u_input = int(input("Enter an integer: "))
2+
#
3+
#
4+
# def function1(u_input):
5+
# u_input = int(input("Enter an integer: "))
6+
#
7+
# for num in range(1, u_input):
8+
# if num % 3 == 0 and num % 5 == 0:
9+
# print(f'fizzbuzz({num})')
10+
# elif num % 3 == 0:
11+
# print(f'fizz({num})')
12+
# elif num % 5 == 0:
13+
# print(f'buzz({num})')
14+
# else:
15+
# print(num)
16+
#
17+
#
18+
# function1(u_input)
19+
20+
# u_input = int(input("Enter an integer: "))
21+
22+
num = int(input("Enter an integer: "))
23+
24+
def function1(num):
25+
# for num in range(1, u_input):
26+
if num % 3 == 0 and num % 5 == 0:
27+
print(f'fizzbuzz({num})')
28+
elif num % 3 == 0:
29+
print(f'fizz({num})')
30+
elif num % 5 == 0:
31+
print(f'buzz({num})')
32+
else:
33+
print(num)
34+
35+
36+
function1(num)

0 commit comments

Comments
 (0)