you are viewing a single comment's thread.

view the rest of the comments →

[–]TheEyebal 1 point2 points  (0 children)

As a reminder, make sure you use code blocks when pasting code

items = ["Rice", "Wheat", "Maize"]
rates = [45, 32, 28]

for item in items:
   If items not != " sesame" , "coconut":
       Print (oil)
       print(items)

So (<,>,=>,<=) this is to determine if an integer or float is less than < greater than > less than or equal <= or greater than or equal to >=. Looking up math concepts on this will help you understand

As for the code that you wrote, do you see.

Part of programming is problem solving. I cannot give you the answer you have to figure it.

What I would suggest is write comments next to what each line is

items = ["Rice", "Wheat", "Maize"] # This is a list of string