+ 1
What ways can i turn a simple code of if-then-else statement into more complicated code :))
appreciated if with examples!! ♡
4 Réponses
+ 3
You can take an if, elif, else into an if else, if else.
+ 1
https://code.sololearn.com/cb03m5jicZ5m/?ref=app
This kind ? You can let people chose the answer you gave them.
+ 1
If -elif...else can be cool .
Here's the example:
https://code.sololearn.com/c5gOhNL1f9Yu/?ref=app
https://code.sololearn.com/cO6RC2XmauXc/?ref=app
+ 1
Here is yet another example showing if, else to achieve different objectives within the code
https://code.sololearn.com/cmI7FvvuAAPR/?ref=app