Oct-29-2019, 04:00 AM
May i ask. what function i can use to make me confirm my string position number one number if i get 1, i will get ok else i will get fail.
below is the function i using on my program
mystring = "11000000000000000000000000000000"
mystring[0:1]
if mystring == 1:
print(ok)
else:
print(fail)
below is the function i using on my program
mystring = "11000000000000000000000000000000"
mystring[0:1]
if mystring == 1:
print(ok)
else:
print(fail)