Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EC3] [Python] To disable for python ? #140

Closed
Ella-dee opened this issue Apr 6, 2023 · 1 comment
Closed

[EC3] [Python] To disable for python ? #140

Ella-dee opened this issue Apr 6, 2023 · 1 comment
Assignees
Labels
🗃️ rule rule improvment or rule development or bug 🏆 challenge2023 🏆 Work done during the ecoCode Challenge 2023 __PRIO_HIGH__ python

Comments

@Ella-dee
Copy link

Ella-dee commented Apr 6, 2023

La règle EC3 "Getting the size of the collection in the loop" est notée "à faire" dans python, mais les boucles for en python sont sur le principe d'une boucle foreach, on ne prend donc pas la taille du tableau:
fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)

@MP-Aubay MP-Aubay added 🗃️ rule rule improvment or rule development or bug python 🏆 challenge2023 🏆 Work done during the ecoCode Challenge 2023 labels Apr 6, 2023
@dedece35 dedece35 changed the title EC3-Python [EC3] [Python] To disable for python ? Aug 25, 2023
@dedece35 dedece35 self-assigned this Sep 22, 2023
@dedece35
Copy link
Member

dedece35 commented Sep 22, 2023

hello @Ella-dee,
thank you for your issue.

done with 1bd5870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗃️ rule rule improvment or rule development or bug 🏆 challenge2023 🏆 Work done during the ecoCode Challenge 2023 __PRIO_HIGH__ python
Projects
None yet
Development

No branches or pull requests

3 participants