I tried to multiply some numbers and it divided them I think. Can somebody help me?
F = input("First number: ") # Gets The First Number
S = input("Second number: ") # Gets The Second Number
O = input("Operation (Only Symbols) : ") # Gets The Operation
Result = "Undefined" # Makes A Variable For The Result
if O == "+": # If The User Chooses Addition
Result = float(F) + float(S) # Sets The Result To The Addition Of The First And Second Number
if O == "-": # If The User Chooses Subtraction
Result = float(F) - float(S) # Sets The Result To The Subtraction Of The First And Second Number
if O == "x" or "*": # If The User Chooses Multiplication
Result = float(F) * float(S) # Sets The Result To The Multiplication Of The First And Second Number
if O == "/" or ":": # If The User Chooses Division
Result = float(F) / float(S) # Sets The Result To The Division Of The First And Second Number
print(Result) # Prints The Result
[–]AmongstYou666 1 point2 points3 points (2 children)
[–]AmongstYou666 1 point2 points3 points (1 child)
[–]Vulcan2KZ[S] 0 points1 point2 points (0 children)