Skip to content

Day 10 - Function Return Values and the Calculator Project

Notifications You must be signed in to change notification settings

SamanthaCorner/100daysPython-DAY-10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Days in Month

  • Building on the Leap Year code, the function is_leap_year() now returns "True" or "False".

  • The function called days_in_month() which takes a year and a month as inputs, and uses this information to work out the number of days in the month, then return that as the output.

  • The List month_days contains the number of days in a month from January to December for a non-leap year. A leap year has 29 days in February.

Calculator

  • A very basic calculator which asks for a number, then an operand followed by requesting the second number.

  • Output is to the console and option for user to do more calculations or ending the program.

About

Day 10 - Function Return Values and the Calculator Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages