I have been making a Python game and need some help. I want to be able to have a user craft a item (I have made this) and some items to take longer. I am not sure how to get the number of seconds to wait from an array.
Example Dictionary:
TimeToCraft = {
'missile' : 10,
'otherThing' : 100,
}
Any idea how I could read the number from the dictionary above and input it into a time.sleep() function?