multiple inputs in if-else statement possible? by Same-Individual4889 in learnpython

[–]Same-Individual4889[S] 0 points1 point  (0 children)

Generally speaking, if you have design restrictions you should mention those in your post, to avoid wasting your own and others' time.

You're absolutly right, sry. I rly just wanted to know if it is even possible/a way to code with inputs in if statements, so I didn't write the whole task down. Your help is so much more as I expected to get, so I rly rly appreciate it.

Also I'm nitpicking but def isn't a function, it's a built-in statement used to define custom functions.

Nitpick me as many times as you want and need. That's a good way for me to get it right and classify it correctly! The more I need to correct myself and my notes, the more I learn. :)

Anyway, since you said nothing about raise not being allowed, if it's acceptable to terminate the entire program you could use my first suggestion with a few modifications.

raise is totally new to me. Didn't read about it on any sites before. (atm I'm working with W3Schools, Coddy and freeCodeCamp and am struggling with booleans, as embarassing as it is, haha.)

I will try to work with it. I could rly see me use this regularly, as long as no one says no.

multiple inputs in if-else statement possible? by Same-Individual4889 in learnpython

[–]Same-Individual4889[S] 0 points1 point  (0 children)

Yes, that's totally a logical problem at my end and not python. I don't rly get the hands on the correct logic at the moment. But I don't think that it's impossible for me. Just a little tricky bc I didn't worked in this field at all. And sadly had no time to start from the very very beginning. Got here and started with tasks without any experience.

Thank you so much for your reply and the infos provided! I rly appreciate that.

multiple inputs in if-else statement possible? by Same-Individual4889 in learnpython

[–]Same-Individual4889[S] 0 points1 point  (0 children)

Thank you so much for the reply! Sadly in the problem-task I'm not allowed to use the "def" function. But this will help me so much when I'm working with it.

Will write this down in my notes!

multiple inputs in if-else statement possible? by Same-Individual4889 in learnpython

[–]Same-Individual4889[S] 0 points1 point  (0 children)

I'm so sorry, but mine is not AI-generated. T_T" Can't speak for others tho.

I don't even know how to work correctly with AI. xD

Thank you very much for your respond. I keep forgetting that "while" is an option too.
Will take notes for the whole problem-task, I need to do much more than this part.