Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views2 pages

Python

The document contains a simple Python script that prompts the user to input two numbers. It compares the two numbers and prints whether they are equal or not. The script uses basic conditional statements to achieve this functionality.

Uploaded by

Gosen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Python

The document contains a simple Python script that prompts the user to input two numbers. It compares the two numbers and prints whether they are equal or not. The script uses basic conditional statements to achieve this functionality.

Uploaded by

Gosen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

a = input("Enter first number: ")

b = input("Enter the second number: ")

if a == b:

print ("Both numbers are equal")

else:

print ("Both numbers are not equal")

You might also like