Absolute N00B Question: Using 1 list to Index another

Hello, @Dbee, and welcome to Python Software Foundation Discourse!

When asking questions or offering replies, and you need to post code within these discussions, please format it correctly for posting, so that important details such as indentation are displayed properly. One way to do this is to place lines of three back ticks before and after the code, as follows:


```
# example code
for i in range(10):
    print("Hello World!")
```

There is also a </> button at the top of the editing window for formatting code, after it has been selected.

Concerning your question, are you familiar with the Python Built-in functions page in the official documentation? You may especially be interested in the len() function.

We hope you enjoy the discussions here. You might be interested in taking a look at the following pages:

EDITED on March 15, 2022 to reorganize the order of the text.

1 Like