mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-07-25 23:11:13 +02: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') |