79716224

Date: 2025-07-27 07:38:28
Score: 1
Natty:
Report link

method-1

a=10

b=10

c=10

variables={ 'a' : a ,'b' : b , 'c' : c}

names=list(variables.keys())

print(names)

method-2

def my_function():

a=10

b=20

c=30

return list(locals().keys())

print(my_function())

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Umamaheswari11