Code Edit test

More
18 Jun 2022 12:50 #245391 by BigJohnT
Code Edit test was created by BigJohnT
Code edit test
def isNumber(s): try: s[-1].isdigit() float(s) return True except ValueError: return False
JT

Please Log in or Create an account to join the conversation.

More
18 Jun 2022 12:50 - 18 Jun 2022 12:52 #245392 by BigJohnT
Replied by BigJohnT on topic Code Edit test
hmm that took out all the line feeds and tabs lol

def isNumber(s):
    try:
        s[-1].isdigit()
        float(s)
        return True
    except ValueError:
        return False

Edit did not screw up the code tags!

JT
Last edit: 18 Jun 2022 12:52 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
18 Jun 2022 12:51 #245393 by BigJohnT
Replied by BigJohnT on topic Code Edit test
So press the Code button first then paste your code in between.

JT
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum