Python Online Compiler
Example: Python program to the sum of two float values
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python program to the sum of two float values print("Enter two float values::\n") p, q = float(input()), float(input()) print("\nResult:: ", p, " + ", q, " = ", end="") p = p + q print(p)
5.23 7.29
Output
Clear
ADVERTISEMENTS