I want to store two variables in an array or list in a loop to collect all my x an y, something like the append function in python, can anyone help me.
MaxManus
0
Newbie Poster
Recommended Answers
Jump to PostNot sure exactly what you're asking... but you could make a list of tuples list:
my_list = [ (0,0), (0,1), (1,1), (1,2) ]
? Is that what you're asking?
Jump to PostI don't really understand what you're asking... Can you clarify what you need help with?
All 8 Replies
jlm699
320
Veteran Poster
MaxManus
0
Newbie Poster
jlm699
320
Veteran Poster
MaxManus
0
Newbie Poster
breatheasier
0
Light Poster
MaxManus
0
Newbie Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
MaxManus
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.