- Posts: 3410
- Thank you received: 0
Code Edit test
4 years 4 months ago #245391
by BigJohnT
Code Edit test was created by BigJohnT
Code edit test
JT
Code:
def isNumber(s): try: s[-1].isdigit() float(s) return True except ValueError: return False
Please Log in to join the conversation.
4 years 4 months ago #245392
by BigJohnT
Replied by BigJohnT on topic Code Edit test
hmm that took out all the line feeds and tabs lol
Edit did not screw up the code tags!
JT
Code:
def isNumber(s):
try:
s[-1].isdigit()
float(s)
return True
except ValueError:
return False
Edit did not screw up the code tags!
JT
Please Log in to join the conversation.
Time to create page: 0.100 seconds
