Code Edit test

More
4 years 4 months ago #245391 by BigJohnT
Code Edit test was created by BigJohnT
Code edit test
Code:
def isNumber(s): try: s[-1].isdigit() float(s) return True except ValueError: return False
JT

Please Log in to join the conversation.

More
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

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.

More
4 years 4 months ago #245393 by BigJohnT
Replied by BigJohnT on topic Code Edit test
So press the Code button first then paste your code in between.

JT

Please Log in to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum