Mit Turtle & Schildkröte besser werden im Programmieren von Abläufen. Du findest in diesem Artikel die Grundlagen, um in Python mit dem Turt
Post #52: HelloCoding, Python und die Programmierung mit der Schildkröte, 2024.
seen from Saudi Arabia

seen from Malaysia
seen from Türkiye
seen from Egypt

seen from Malaysia
seen from Malaysia
seen from Iraq
seen from Egypt
seen from United States
seen from United States

seen from Malaysia

seen from Malaysia

seen from Malaysia
seen from China

seen from Malaysia
seen from China
seen from China

seen from Russia
seen from United States
seen from Brazil
Mit Turtle & Schildkröte besser werden im Programmieren von Abläufen. Du findest in diesem Artikel die Grundlagen, um in Python mit dem Turt
Post #52: HelloCoding, Python und die Programmierung mit der Schildkröte, 2024.
Lass die Schildkröte für dich arbeiten ...
Es gibt seit 2022 eine 2. und erweiterte Auflage dieses Buches "Erste Schritte mit Python für Dummies Junior.
Post #64: Olga Runge & Claudia Ermel, Erste Schritte mit Python für Dummies Junior, Lass die Schildkröte für dich arbeiten, Wiley Verlag, 112 Seiten, 1. Auflage, 2017.
Anna and Else
There’s another part to the conditionals... the “else” statement.
In the last program, I only knew that if the condition wasn’t fulfilled, it wasn’t going to run... But now I know that there’s another way. If the condition isn’t fulfilled, then there’s something false... and what the “else” statement does, is it runs only if the condition isn’t fulfilled.
I asked Owner some help with testing this theory. When I run the program:
But when he runs it:
This happens because the answer is not yes. Note that the else statement can’t be used on its own, it has to be used after an if statement, otherwise the program doesn’t know which condition isn’t fulfilled.
If i = boy
Owner was listening to a song while he was programming and explained to me how to use conditionals. He told me that a conditional inserts a condition (whoah, big surprise) that an object has to fulfill in order to continue down a programmed pathway.
Here’s an example:
What the “if” statement does is that it conditions a part of the program to run only if a condition is fulfilled.
If I input boy to the program, it shows what it was printed
If I input turtle to the program, it doesn’t work.
Here’s a video that helps turtles like me learn a little bit more about the topic. <3