Convert dictionary to list in python in 3 ways tutorial

preview_player
Показать описание
How to convert dictionary to list in python is shown
#python
Рекомендации по теме
Комментарии
Автор

Hello, could you please explain the difference between

def test(num):
if num > 50:
return num - 2
return test(test(num + 10))
print(test(30))

And this

def test(num):
if num > 50:
return num - 2
return test(num + 10)
print(test(30))

liri
Автор

AttributeError: 'list' object has no attribute 'items'

aaaawqer