126. String Isdigit and Isidentifier Method in Python with Example Code || Python String Methods-8

Published: 01 October 2022
on channel: Bhavatavi
9
0

Code:
s='234235'
print(s.isdigit())

s='abc 436547'
print(s.isdigit())

s='\u00BD'
print(s.isdigit())

#isidentifier()
str='Python'
print(str.isidentifier())


str='Pyth on'
print(str.isidentifier())


str='22Python'
print(str.isidentifier())


str=''
print(str.isidentifier())

str='root33'
if str.isidentifier()==True:
print(str,'is a valid identifier')

else:
print(str,'is not a valid identifier')

str='33root'
if str.isidentifier()==True:
print(str,'is a valid identifier')

else:
print(str,'is not a valid identifier')


On this page of the site you can watch the video online 126. String Isdigit and Isidentifier Method in Python with Example Code || Python String Methods-8 with a duration of hours minute second in good quality, which was uploaded by the user Bhavatavi 01 October 2022, share the link with friends and acquaintances, this video has already been watched 9 times on youtube and it was liked by 0 viewers. Enjoy your viewing!