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

Publicado el: 01 octubre 2022
en el canal de: 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')


En esta página del sitio puede ver el video en línea 126. String Isdigit and Isidentifier Method in Python with Example Code || Python String Methods-8 de Duración hora minuto segunda en buena calidad , que subió el usuario Bhavatavi 01 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 9 veces y le gustó 0 a los espectadores. Disfruta viendo!