What is input for ENTER key?
tf_end=str(input("TF end: "))
tfend={"":7,'1':0,'2':1,'3':2,'5':3,'10':4,'15':5,'30':6,'1h':7}
while not any(x in tfend.keys() for x in tf_end):
tf_end=str(input("TF end: "))
Because I do above logic but "" is not equal to ENTER (cannot escape while loop). How to escape this while loop by using ENTER key?
list('') == []andany([]) == Falsestr(input(...))is redundant.inputalways returns astr