79120829

Date: 2024-10-24 07:37:56
Score: 1
Natty:
Report link

I don't why you would need it but here is one way

for x in range(5):
   globals()['a%s' % x] = f'Test{x}'

print(a1)

This is not the best practice, you can try using dic or list

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