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)

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