user100DaysOfCode
CommunityDevTermsResources|Login

Loading

Python Roadmap

Day 4: Basic Operators and Expressions

Arithmetic Operators
Write a program to perform the following arithmetic operations using two numbers:
  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Floor Division (//)
  • Modulus (%)
  • Exponentiation (**)


Relational Operators
Write a program to compare two numbers using the following operators:
  • Equal to (==)
  • Not equal to (!=)
  • Greater than (>)
  • Less than (<)
  • Greater than or equal to (>=)
  • Less than or equal to (<=)


Logical Operators
Write a program that evaluates the following between 2 booleans(True or False):
  • Logical AND (and)
  • Logical OR (or)
  • Logical NOT (not)
<Prev|Next>

Learning Resources |View Complete Plan

Daily Puzzles App

10+ word & logic games. Build your daily streak!

App Store

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