v1 = ['hi', 'hello', 'this', 'that', 'is', 'of']
v2 = {"Hamza": 1, "Kashif": 2, "Ali": 3}
v3 = "I love pakistan."
def rec(value):
if isinstance(value, list):
for i in value:
rec(i)
elif isinstance(value, dict):
for k, v in value.items():
rec(k)
else:
return str(value).upper()
print(rec(v1))
print(rec(v2))
print(rec(v3))
kindly solve this problem because i am getting None when call V! and V2