print(), Outputs text or data to the screen. It’s often used for testing and debugging., input(), Allows the user to input data. The program waits for the user to type something and press Enter., if, Starts a conditional statement to perform different actions based on whether a condition is true or false., else, Provides an alternative action if the if condition is false., for, Used to create a loop that repeats a block of code for a set number of times or through a sequence., while, Creates a loop that repeats as long as a condition remains true., t.forward(100), Move turtle forward by 100 pixels, t.right(90), Turn turtle 90 degrees to the right.

Ledertavle

Visuell stil

Alternativer

Bytt mal

)
Gjenopprett automatisk lagring: ?