Skip to content Skip to sidebar Skip to footer

Time.sleep - TypeError: A Float Is Required

time.sleep('2') TypeError: a float is required How do I fix this? I'm not sure what I'm supposed to do here.

Solution 1:

You're passing a string (of one character "2"). Pass a number:

time.sleep(2)

Post a Comment for "Time.sleep - TypeError: A Float Is Required"