Oct-29-2019, 10:11 PM
There is
str.startswith
method. So, you can just do:if raw_file1.startswith('125'): pass # or do something else: pass # or do something