Code Edit test
18 Jun 2022 12:50 #245391
by BigJohnT
Code Edit test was created by BigJohnT
Code edit testJT
def isNumber(s): try: s[-1].isdigit() float(s) return True except ValueError: return False
Please Log in or Create an account to join the conversation.
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
Edit did not screw up the code tags!
JT
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.
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
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