mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
16 lines
288 B
Python
16 lines
288 B
Python
hey = ['hey', 'aaa', 'aaa', 'adssad']
|
|
aaa='aaa'
|
|
print(type(hey))
|
|
print(type(aaa))
|
|
print(hasattr(hey, "__len__"))
|
|
print(hasattr(aaa, "__len__"))
|
|
|
|
if type(hey) == list:
|
|
print('list')
|
|
else:
|
|
print('hey not list')
|
|
|
|
if type(aaa) == list:
|
|
print('aaa')
|
|
else:
|
|
print('aaa not list') |