Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
verreisterNutzer
1 year ago

Moin,

def setup():

initiates a function.

tier = "Igel"

The variable “tier” is transferred to the value “angel”.

text(tier, 30, 30)

The function “text” is called and the stored value of the variable “tier” and the numbers “30” and “30” are added so that the parameters of the function “text” can get the transferred value and can be used further in the function “text”.

LG Der1Streber

BeamerBen
1 year ago

First of all, the tip that you can ask about ChatGPT. The thing is partly overhyped, but it can be very useful for that.

At the beginning a function is declared with def namederfunction(): in the next line will be over variable name = value the variable tier is assigned the value “Igel”, in the last line functionname(parameter…) the text function with the parameters tier, which has the value “angel”, 30 and again the number 30.