Files
CyberPanel/plogical/test.py

16 lines
288 B
Python
Raw Normal View History

2022-08-20 15:56:50 +05:00
hey = ['hey', 'aaa', 'aaa', 'adssad']
aaa='aaa'
print(type(hey))
print(type(aaa))
print(hasattr(hey, "__len__"))
print(hasattr(aaa, "__len__"))
2022-06-29 17:52:35 +05:00
2022-08-20 15:56:50 +05:00
if type(hey) == list:
print('list')
else:
print('hey not list')
2022-06-29 17:52:35 +05:00
2022-08-20 15:56:50 +05:00
if type(aaa) == list:
print('aaa')
else:
print('aaa not list')