Python Tutorial

Here you can learn about the basics of Python for free.

Monday, June 3, 2019

Practice Questions



Q1 .write a program to add two numbers in python.
a=float(input("Enter 1st number: "))
b=float(input("Enter 2nd number: "))
c=a+b
print(c)

Output---
Enter 1st number: 2.0
Enter 2nd number: 4.0
6.0