I\'m working on my python script to get the 12 hours time.
I want to get the 7 hour instead of 07.
7
07
self.getControl(4203).setLab
You can use lstrip to remove a given character from the left side of the result (if it exists):
hour = time.strftime("%I").lstrip('0') print(hour)