user100DaysOfCode
CommunityDevTermsResources|Login

Loading

Python Roadmap

Day 5: Conditional Statements and Loops

If-else Statements
  • Write a program that takes an integer as input and checks if it's even or odd.
  • Write a program that takes an age as input and determines if the person is a child, teenager, adult, or senior citizen.

Nested If-else Statements
  • Using nested if-else, write a program that takes three numbers as input and determines the largest among them.

For Loop
  • Write a program to calculate the sum of all numbers up to the given input number.

While Loop
  • Write a program to calculate the factorial of a given number.
<Prev|Next>

Learning Resources |View Complete Plan

Day 5 - Conditional Statements and Loops

If-else Statements
  • Write a program that takes an integer as input and checks if it's even or odd.
  • Write a program that takes an age as input and determines if the person is a child, teenager, adult, or senior citizen.

Nested If-else Statements
  • Using nested if-else, write a program that takes three numbers as input and determines the largest among them.

For Loop
  • Write a program to calculate the sum of all numbers up to the given input number.

While Loop
  • Write a program to calculate the factorial of a given number.
Basic Syntax and Concepts
<Prev|Next>

Learning Resources |View Complete Plan

      Sponsor Us|Community|Blog|YoutubeCareersContact UsDisclaimerPrivacy PolicyTerms of Service
      Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
      100DaysOfCode@2024