Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 758 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 758 Bytes

Number Parity

Overview

With the help of this program, a user may enter a number and find out if it's even or odd. A number is requested from the user, transformed to an integer, and then tested with an if statement. A message noting that the number is even is written if it is. A notice explaining that the number is odd is printed if it is odd.

How to Use

  1. Download the.py file or clone this repository.
  2. Launch a text editor or Python environment and open the file.
  3. Execute the code to see the number entry box.
  4. Type a number to see whether it is even or odd.

Requirements

• Python3

Conclusion

This is a straightforward application that shows how to utilise user input, type conversion, and conditional expressions in Python.