jeudi 11 novembre 2021

What is "if something[i]:" in python

I'm studying about Sieve of Eratosthenes in python and see a command is:

for p in range(n + 1):
    if prime[p]:

So I want to ask you guys what is if something[p]: means. Because, during my learning python, it was not mentioned. Thanks for your help and sorry because my english so bad.

Aucun commentaire:

Enregistrer un commentaire