mercredi 19 mai 2021

I have a problem with this if statement in python

I am new in Python and I always loved to learn any thing from references. The reference that I'm learning python from it now is Crash course and there is a test to check that I had the concept or not. This is the task The task and I try to do it by the following code.

alien_colors = ['green','yellow','red']
if alien_colors == 'green' :
print ("You have just earned 5 points")

the problem is the output is just nothing. *note I want to make the successful code in the test not the wrong one.

Aucun commentaire:

Enregistrer un commentaire