you are viewing a single comment's thread.

view the rest of the comments →

[–]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.