I'm attempting to get a user input as a fraction but use it as a decimal, in python
For example:
chance = input("Enter chance")
Let's assume the user enters "3/4"
How can I convert "3/4" to "0.75" for further calculations, such as:
total = chance + 36/67 # Where total is a float value
P.S. I'm new to python so if this seems a bad question I apologise but I couldnt find an answer anywhere.