Skip to content

Instantly share code, notes, and snippets.

@shivam-gupta007
Created February 25, 2022 09:39
Show Gist options
  • Save shivam-gupta007/35c0b3864ed711111ef831a5eb76a95e to your computer and use it in GitHub Desktop.
Save shivam-gupta007/35c0b3864ed711111ef831a5eb76a95e to your computer and use it in GitHub Desktop.
Python-assignment
a = float(input("Enter num1: "))
b = float(input("Enter num2: "))
print(a," + ", b, " = " , (a+b))
# Output -
# Enter num1: 10.5
# Enter num2: 20.5
# 10.5 + 20.5 = 31.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment