Fehler, die Sie in der Zeitklasse in Python DateTime erhalten

# Python program to demonstrate time class
# import the date class
from datetime import time

# will rase an ValueError as it is out of range
my_time = time(hour = 26)
print("my_time)

# will raise TypeError as string is passed instead of int
my_time = time(hour ='23')
print("my_time)
Outrageous Ostrich