8000 File modes · premaseem/pythonLab@c15eb47 · GitHub
[go: up one dir, main page]

Skip to content

Commit c15eb47

Browse files
Aseem JainAseem Jain
authored andcommitted
File modes
1 parent eea494e commit c15eb47

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

concepts/file_handling/file_modes.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""
2+
@Author: Aseem Jain
3+
@Linkedin: https://www.linkedin.com/in/premaseem/
4+
@Github: https://github.com/premaseem/pythonLab/tree/master/challenge
5+
6+
"""
7+
8+
9+
def sol(n):
10+
return n * 2
11+
12+
13+
test_data = [
14+
(2, 4),
15+
(4, 8),
16+
]
17+
18+
for given, expected in test_data:
19+
assert expected == sol(given)
20+
print(f"Test passed for: given {given} and expected = {expected}")

0 commit comments

Comments
 (0)
0