dimanche 6 novembre 2016

How do i write an algorithm that reads three numbers and prints them out in ascending order in python

How do i write an algorithm that reads three numbers and prints them out in ascending order in python. Please help this is what i have tried so far i hope you guys can help me out thank you, this is using python and i am new to programming. I do not know how to do the part where it says in ascend orders.

one = float(input("Please input a number : "))
two = float(input("Please input a second number : "))
three = float(input("Please input a third number : "))

if one > two and three:
    print("")*

Aucun commentaire:

Enregistrer un commentaire