cs/Practical File/question_01_output.txt
Neil Revin cc8b0efe94
feat: add practical file projects
Signed-off-by: Neil <neil@willofsteel.me>
2025-06-24 02:28:22 +05:30

14 lines
237 B
Plaintext

Question 01:
Write a Python program to accept two integers and print their sum.
Answer:
def main(int1: int, int2: int) -> int:
print(f"{int1} + {int2} = {int1 + int2}")
if __name__ == '__main__':
main(2, 2)
Output:
2 + 2 = 4