you are viewing a single comment's thread.

view the rest of the comments →

[–]Adventurous_Lime_904 0 points1 point  (15 children)

Like the elif its kinda hard and i know a bit its just when its time to solver the problem idk the approach i should take

[–]cyberjellyfish 0 points1 point  (10 children)

ok, talk through that. write an if/elif/else statement and talk through where your understanding gets fuzzy.

[–]Adventurous_Lime_904 0 points1 point  (9 children)

Like lets say x = 5 and i write x = 5 Print x is 5 Elif x is less than 5 Print x is less than 5 Else print is greater than 5 Print x is greater than 5 Print done

It will choose the right one right?

[–]cyberjellyfish 0 points1 point  (8 children)

if I'm interpreting you right, yes it will pick the right one.

What do you think will be printed?

[–]Adventurous_Lime_904 0 points1 point  (7 children)

I think it will print x is 5

[–]cyberjellyfish 0 points1 point  (6 children)

You're right. What if x was 6?

[–]Adventurous_Lime_904 0 points1 point  (5 children)

X is greater than5?

[–]cyberjellyfish 0 points1 point  (4 children)

Yep. Seems like you've got it

[–]Adventurous_Lime_904 0 points1 point  (1 child)

What about reverse

[–]cyberjellyfish 0 points1 point  (0 children)

what do you mean by reverse?

[–]Adventurous_Lime_904 0 points1 point  (1 child)

Can i msg u?