In the assignment 2 in the first task i have used the simple if else statement to check that whether a number is even or odd In the second task by using the for loop for getting the sum of the first 50 numbers and i have used return statements in my functions rather than print statement so as to ensure that the code is efficient and more robust
-
Notifications
You must be signed in to change notification settings - Fork 0
Yuricin/Assignment2.py
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published