Requirement:
- I want to run a for loop which would create a new list as per it's range
- Once the list is created, I want the list to append the data running in the iteration
- If I've range of 5 then 4 lists should be created and should be used to append the data inside it.
Attaching a code which is totally wrong, But it explains what I want
for b in range(1,5):
f"abc{b}" = []
d = f"***{b}"
f"abc{b}".append(d)
print(abc1)
Output - ***1
print(abc2)
Output - ***2
Is something like this possible? Or any alternative solution?
For all the users who've answered my previous question, I request you to please update your comments and answers.