<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://staging.moocwiki.org/index.php?action=history&amp;feed=atom&amp;title=English%3AIntroduction_to_Python</id>
	<title>English:Introduction to Python - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://staging.moocwiki.org/index.php?action=history&amp;feed=atom&amp;title=English%3AIntroduction_to_Python"/>
	<link rel="alternate" type="text/html" href="https://staging.moocwiki.org/index.php?title=English:Introduction_to_Python&amp;action=history"/>
	<updated>2026-08-13T16:38:02Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in MOOCsWiki Staging</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://staging.moocwiki.org/index.php?title=English:Introduction_to_Python&amp;diff=44019&amp;oldid=prev</id>
		<title>Glanz: aiMOOC über GPT aiMOOC Action erstellt</title>
		<link rel="alternate" type="text/html" href="https://staging.moocwiki.org/index.php?title=English:Introduction_to_Python&amp;diff=44019&amp;oldid=prev"/>
		<updated>2026-08-13T08:56:04Z</updated>

		<summary type="html">&lt;p&gt;aiMOOC über GPT aiMOOC Action erstellt&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{T}}&lt;br /&gt;
[[Category:English]]&lt;br /&gt;
[[Category:Introduction to Python]]&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
Welcome to &amp;#039;&amp;#039;&amp;#039;Introduction to Python&amp;#039;&amp;#039;&amp;#039;. In this aiMOOC, you will learn how to give a computer clear instructions using the [[English:Python (programming language)|Python programming language]]. The course is designed for &amp;#039;&amp;#039;&amp;#039;Grades 7–8&amp;#039;&amp;#039;&amp;#039;, so it begins with simple ideas and builds toward small programs that you can create, test, improve, and explain.&lt;br /&gt;
&lt;br /&gt;
Python is a general-purpose programming language. It is widely used for learning programming as well as for areas such as data analysis, web development, automation, science, and artificial intelligence. Python code is often considered readable because many commands use short English-like words and because indentation is part of the program structure.&lt;br /&gt;
&lt;br /&gt;
[[File:Python-logo-notext.svg|300px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
A program is a set of instructions that a computer follows. Programming is not only about typing code. You also learn to break a problem into steps, notice patterns, test ideas, find mistakes, and improve your solution. These are useful skills in [[English:Computer science|computer science]], mathematics, science, technology, and many other subjects.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;By the end of this course, you should be able to:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# [[English:Programming basics|Explain what a program does]]: Describe how source code gives instructions to a computer.&lt;br /&gt;
# [[English:Python syntax|Write simple Python code]]: Use correct spelling, symbols, line breaks, and indentation.&lt;br /&gt;
# [[English:Variables|Store information in variables]]: Work with text, whole numbers, decimal numbers, and Boolean values.&lt;br /&gt;
# [[English:Input and output|Use input and output]]: Ask the user for information and show useful results.&lt;br /&gt;
# [[English:Conditional statement|Make decisions]]: Use if, elif, and else to choose between actions.&lt;br /&gt;
# [[English:Loop (computing)|Repeat actions]]: Use for loops and simple while loops.&lt;br /&gt;
# [[English:List (computing)|Organize several values]]: Create and use Python lists.&lt;br /&gt;
# [[English:Subroutine|Build functions]]: Group reusable instructions into named functions.&lt;br /&gt;
# [[English:Debugging|Debug programs]]: Read error messages, test code, and correct mistakes.&lt;br /&gt;
# [[English:Turtle graphics|Create a visual program]]: Use turtle graphics to connect code with shapes and patterns.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== What Is Python? ==&lt;br /&gt;
&lt;br /&gt;
Python is both a &amp;#039;&amp;#039;&amp;#039;programming language&amp;#039;&amp;#039;&amp;#039; and the name of software that can run Python code. A Python program is usually saved as a text file with the ending &amp;lt;code&amp;gt;.py&amp;lt;/code&amp;gt;. When you run the file, the Python interpreter reads the instructions and carries them out.&lt;br /&gt;
&lt;br /&gt;
Python was created by Guido van Rossum and first released in the early 1990s. The name refers to the comedy group Monty Python, not to the snake. Today, Python is developed as an open-source project with a large worldwide community.&lt;br /&gt;
&lt;br /&gt;
[[File:Python Code.png|500px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
The official Python tutorial describes expressions, data types, control flow, functions, modules, and other language features. For this school-level course, you will focus on the parts that help you build clear beginner programs.&lt;br /&gt;
&lt;br /&gt;
[https://docs.python.org/3/tutorial/ Official Python Tutorial]&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== How You Can Run Python ==&lt;br /&gt;
&lt;br /&gt;
You need a place where you can type and run code. One common beginner tool is &amp;#039;&amp;#039;&amp;#039;IDLE&amp;#039;&amp;#039;&amp;#039;, Python&amp;#039;s Integrated Development and Learning Environment. It includes an interactive shell and a code editor. Your school may also use another editor or a browser-based coding environment.&lt;br /&gt;
&lt;br /&gt;
[[File:Python IDLE.png|500px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
Two useful ways to work are:&lt;br /&gt;
&lt;br /&gt;
# [[English:Read–eval–print loop|Interactive shell]]: Type one instruction and see the result immediately. This is useful for quick experiments.&lt;br /&gt;
# [[English:Source code|Script file]]: Write several lines, save them in a &amp;lt;code&amp;gt;.py&amp;lt;/code&amp;gt; file, and run the whole program. This is better for projects.&lt;br /&gt;
&lt;br /&gt;
Your first program can be only one line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
print(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The function &amp;lt;code&amp;gt;print()&amp;lt;/code&amp;gt; displays information. Text inside quotation marks is a &amp;#039;&amp;#039;&amp;#039;string&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Try it:&amp;#039;&amp;#039;&amp;#039; Change the message so that the program greets your class, your school club, or a fictional character.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Core Python Skills =&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Values, Variables, and Data Types ==&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;value&amp;#039;&amp;#039;&amp;#039; is a piece of information, such as &amp;lt;code&amp;gt;12&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;3.5&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;Python&amp;quot;&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;. A &amp;#039;&amp;#039;&amp;#039;variable&amp;#039;&amp;#039;&amp;#039; is a name that refers to a value.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
name = &amp;quot;Maya&amp;quot;&lt;br /&gt;
age = 13&lt;br /&gt;
height = 1.58&lt;br /&gt;
likes_coding = True&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this example:&lt;br /&gt;
&lt;br /&gt;
# [[English:String (computer science)|String]]: &amp;lt;code&amp;gt;&amp;quot;Maya&amp;quot;&amp;lt;/code&amp;gt; is text.&lt;br /&gt;
# [[English:Integer (computer science)|Integer]]: &amp;lt;code&amp;gt;13&amp;lt;/code&amp;gt; is a whole number.&lt;br /&gt;
# [[English:Floating-point arithmetic|Float]]: &amp;lt;code&amp;gt;1.58&amp;lt;/code&amp;gt; is a decimal number.&lt;br /&gt;
# [[English:Boolean data type|Boolean]]: &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; represents one of two logical values, &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Variable names can contain letters, numbers, and underscores, but they cannot begin with a number. Choose meaningful names such as &amp;lt;code&amp;gt;score&amp;lt;/code&amp;gt; instead of unclear names such as &amp;lt;code&amp;gt;x1&amp;lt;/code&amp;gt; when the meaning matters.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
score = 7&lt;br /&gt;
score = score + 1&lt;br /&gt;
print(score)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The program first stores &amp;lt;code&amp;gt;7&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;score&amp;lt;/code&amp;gt;. Then it replaces that value with &amp;lt;code&amp;gt;8&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=Z1Yd7upQsXY|500|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Think like a programmer:&amp;#039;&amp;#039;&amp;#039; A variable is not a box permanently labeled with one value. Its value can change while a program runs.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Numbers and Operators ==&lt;br /&gt;
&lt;br /&gt;
Python can act like a calculator.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
print(8 + 3)&lt;br /&gt;
print(8 - 3)&lt;br /&gt;
print(8 * 3)&lt;br /&gt;
print(8 / 3)&lt;br /&gt;
print(8 // 3)&lt;br /&gt;
print(8 % 3)&lt;br /&gt;
print(2 ** 4)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Common arithmetic operators include:&lt;br /&gt;
&lt;br /&gt;
# [[English:Addition|Addition]]: &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt;&lt;br /&gt;
# [[English:Subtraction|Subtraction]]: &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;&lt;br /&gt;
# [[English:Multiplication|Multiplication]]: &amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;&lt;br /&gt;
# [[English:Division (mathematics)|Division]]: &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;&lt;br /&gt;
# [[English:Floor and ceiling functions|Floor division]]: &amp;lt;code&amp;gt;//&amp;lt;/code&amp;gt;&lt;br /&gt;
# [[English:Modulo operation|Remainder]]: &amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt;&lt;br /&gt;
# [[English:Exponentiation|Powers]]: &amp;lt;code&amp;gt;**&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parentheses can make the intended order clear.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
total = (4 + 6) * 3&lt;br /&gt;
print(total)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mini challenge:&amp;#039;&amp;#039;&amp;#039; Write a program that calculates the total price of three identical cinema tickets.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Input and Output ==&lt;br /&gt;
&lt;br /&gt;
Programs become more interesting when they react to a user. The &amp;lt;code&amp;gt;input()&amp;lt;/code&amp;gt; function displays a prompt and waits for the user to type text.&lt;br /&gt;
&lt;br /&gt;
[[File:Flowchart IO.svg|420px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
name = input(&amp;quot;What is your name? &amp;quot;)&lt;br /&gt;
print(&amp;quot;Hello,&amp;quot;, name)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result from &amp;lt;code&amp;gt;input()&amp;lt;/code&amp;gt; is a string. If you want to calculate with a number entered by the user, convert it first.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
age = int(input(&amp;quot;How old are you? &amp;quot;))&lt;br /&gt;
next_age = age + 1&lt;br /&gt;
print(&amp;quot;Next year you will be&amp;quot;, next_age)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Useful conversions include &amp;lt;code&amp;gt;int()&amp;lt;/code&amp;gt; for whole numbers, &amp;lt;code&amp;gt;float()&amp;lt;/code&amp;gt; for decimal numbers, and &amp;lt;code&amp;gt;str()&amp;lt;/code&amp;gt; for text.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Safety note:&amp;#039;&amp;#039;&amp;#039; In school projects, do not ask users to enter private information such as passwords, home addresses, or other sensitive personal data.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Comparisons and Boolean Values ==&lt;br /&gt;
&lt;br /&gt;
A comparison asks a question that has the answer &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
score = 8&lt;br /&gt;
&lt;br /&gt;
print(score &amp;gt; 5)&lt;br /&gt;
print(score == 8)&lt;br /&gt;
print(score != 10)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Important comparison operators include &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; for &amp;quot;is equal to&amp;quot;, &amp;lt;code&amp;gt;!=&amp;lt;/code&amp;gt; for &amp;quot;is not equal to&amp;quot;, &amp;lt;code&amp;gt;&amp;amp;lt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;amp;lt;=&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;amp;gt;=&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Be careful with &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt;. A single &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; assigns a value to a variable. A double &amp;lt;code&amp;gt;==&amp;lt;/code&amp;gt; compares two values.&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=9OK32jb_TdI|500|center}}&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Decisions with if, elif, and else ==&lt;br /&gt;
&lt;br /&gt;
A program can use a condition to decide which instructions to run.&lt;br /&gt;
&lt;br /&gt;
[[File:Flowchart Decision.svg|420px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
temperature = 17&lt;br /&gt;
&lt;br /&gt;
if temperature &amp;gt;= 20:&lt;br /&gt;
    print(&amp;quot;A T-shirt may be enough.&amp;quot;)&lt;br /&gt;
else:&lt;br /&gt;
    print(&amp;quot;Take a jacket.&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The colon after the condition and the indentation on the next line are important. In Python, indentation shows which statements belong inside a block.&lt;br /&gt;
&lt;br /&gt;
You can use &amp;lt;code&amp;gt;elif&amp;lt;/code&amp;gt; when there are more than two choices.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
score = 74&lt;br /&gt;
&lt;br /&gt;
if score &amp;gt;= 90:&lt;br /&gt;
    print(&amp;quot;Level: Expert&amp;quot;)&lt;br /&gt;
elif score &amp;gt;= 70:&lt;br /&gt;
    print(&amp;quot;Level: Skilled&amp;quot;)&lt;br /&gt;
else:&lt;br /&gt;
    print(&amp;quot;Level: Developing&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The program checks the conditions from top to bottom and runs the first matching branch.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Design challenge:&amp;#039;&amp;#039;&amp;#039; Create a decision tree for choosing an activity based on weather conditions, then translate it into Python.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Repetition with for Loops ==&lt;br /&gt;
&lt;br /&gt;
A loop repeats instructions. A &amp;lt;code&amp;gt;for&amp;lt;/code&amp;gt; loop is useful when you know which items or how many steps you want to repeat.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
for number in range(5):&lt;br /&gt;
    print(number)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This prints the values from &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; through &amp;lt;code&amp;gt;4&amp;lt;/code&amp;gt;. The ending value in &amp;lt;code&amp;gt;range(5)&amp;lt;/code&amp;gt; is not included.&lt;br /&gt;
&lt;br /&gt;
You can also repeat an action for every item in a list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
animals = [&amp;quot;fox&amp;quot;, &amp;quot;owl&amp;quot;, &amp;quot;seal&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
for animal in animals:&lt;br /&gt;
    print(&amp;quot;I chose the&amp;quot;, animal)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=94UHCEmprCY|500|center}}&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;code&amp;gt;while&amp;lt;/code&amp;gt; loop repeats as long as a condition stays true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
count = 3&lt;br /&gt;
&lt;br /&gt;
while count &amp;gt; 0:&lt;br /&gt;
    print(count)&lt;br /&gt;
    count = count - 1&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;Go!&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When you write a while loop, make sure something can eventually make its condition false. Otherwise you may create an infinite loop.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Lists ==&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;list&amp;#039;&amp;#039;&amp;#039; stores several values in one ordered collection.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
planets = [&amp;quot;Mercury&amp;quot;, &amp;quot;Venus&amp;quot;, &amp;quot;Earth&amp;quot;, &amp;quot;Mars&amp;quot;]&lt;br /&gt;
print(planets[0])&lt;br /&gt;
print(len(planets))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Python uses zero-based indexing, so the first list item has index &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;. The function &amp;lt;code&amp;gt;len()&amp;lt;/code&amp;gt; tells you how many items are in a list.&lt;br /&gt;
&lt;br /&gt;
You can add an item with &amp;lt;code&amp;gt;append()&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
planets.append(&amp;quot;Jupiter&amp;quot;)&lt;br /&gt;
print(planets)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=ohCDWZgNIU0|500|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mini challenge:&amp;#039;&amp;#039;&amp;#039; Create a list of five school subjects. Use a loop to print one sentence about each subject.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Functions ==&lt;br /&gt;
&lt;br /&gt;
A function is a named block of reusable code. You create your own function with &amp;lt;code&amp;gt;def&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
def greet(name):&lt;br /&gt;
    print(&amp;quot;Welcome,&amp;quot;, name)&lt;br /&gt;
&lt;br /&gt;
greet(&amp;quot;Sam&amp;quot;)&lt;br /&gt;
greet(&amp;quot;Amina&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The variable &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; inside the function definition is a &amp;#039;&amp;#039;&amp;#039;parameter&amp;#039;&amp;#039;&amp;#039;. The value you provide when calling the function is an &amp;#039;&amp;#039;&amp;#039;argument&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Functions can also return values.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
def double(number):&lt;br /&gt;
    return number * 2&lt;br /&gt;
&lt;br /&gt;
answer = double(6)&lt;br /&gt;
print(answer)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=NSbOtYzIQI0|500|center}}&lt;br /&gt;
&lt;br /&gt;
Functions help you avoid repeating the same instructions and make larger programs easier to understand.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Thinking Like a Programmer =&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Algorithms and Flowcharts ==&lt;br /&gt;
&lt;br /&gt;
An &amp;#039;&amp;#039;&amp;#039;algorithm&amp;#039;&amp;#039;&amp;#039; is a step-by-step method for solving a problem. You can plan an algorithm in ordinary language, as pseudocode, or with a flowchart before writing Python.&lt;br /&gt;
&lt;br /&gt;
Example problem: Decide whether a student can borrow a sports item.&lt;br /&gt;
&lt;br /&gt;
# [[English:Input (computer science)|Input]]: Ask whether the student has a school card.&lt;br /&gt;
# [[English:Conditional statement|Decision]]: Check whether the answer is yes.&lt;br /&gt;
# [[English:Output (computer science)|Output]]: Display either &amp;quot;Item can be borrowed&amp;quot; or &amp;quot;Please show your school card.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
A good algorithm is clear, has a sensible order, and eventually finishes.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Debugging and Error Messages ==&lt;br /&gt;
&lt;br /&gt;
Most programmers make mistakes while coding. &amp;#039;&amp;#039;&amp;#039;Debugging&amp;#039;&amp;#039;&amp;#039; means finding and fixing problems.&lt;br /&gt;
&lt;br /&gt;
Common beginner problems include:&lt;br /&gt;
&lt;br /&gt;
# [[English:Syntax error|Syntax error]]: The code does not follow Python&amp;#039;s grammar, perhaps because a colon or quotation mark is missing.&lt;br /&gt;
# [[English:Name binding|Name error]]: The program uses a variable name that has not been defined or has been misspelled.&lt;br /&gt;
# [[English:Type system|Type error]]: An operation is attempted with incompatible kinds of values.&lt;br /&gt;
# [[English:Logic error|Logic error]]: The program runs, but the result is not what you intended.&lt;br /&gt;
&lt;br /&gt;
A useful debugging routine is:&lt;br /&gt;
&lt;br /&gt;
# Read the error message and note the line number.&lt;br /&gt;
# Check spelling, punctuation, brackets, quotation marks, and indentation near that line.&lt;br /&gt;
# Print important variable values to see what the program is doing.&lt;br /&gt;
# Test one small part at a time.&lt;br /&gt;
# Change one thing, run the program again, and compare the result.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
age = input(&amp;quot;Age: &amp;quot;)&lt;br /&gt;
print(age + 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This causes a type problem because &amp;lt;code&amp;gt;input()&amp;lt;/code&amp;gt; returns a string. A corrected version is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
age = int(input(&amp;quot;Age: &amp;quot;))&lt;br /&gt;
print(age + 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Debugging is not a sign that programming has failed. It is part of the normal process of improving a program.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Comments and Readable Code ==&lt;br /&gt;
&lt;br /&gt;
A comment begins with &amp;lt;code&amp;gt;#&amp;lt;/code&amp;gt;. Python ignores the rest of that comment line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# Convert minutes to seconds&lt;br /&gt;
minutes = 5&lt;br /&gt;
seconds = minutes * 60&lt;br /&gt;
print(seconds)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Good comments explain the purpose of a section or an idea that may be hard to understand. They should not simply repeat every obvious line.&lt;br /&gt;
&lt;br /&gt;
Readable code also uses sensible variable names, consistent indentation, and small sections that each have a clear purpose.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Creative Coding with Turtle =&lt;br /&gt;
&lt;br /&gt;
Python&amp;#039;s &amp;lt;code&amp;gt;turtle&amp;lt;/code&amp;gt; module lets you control a small on-screen drawing cursor. It is a useful way to see how sequence, loops, angles, and functions work together.&lt;br /&gt;
&lt;br /&gt;
[[File:Python Turtle Graphics example.png|500px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
A square can be drawn by repeating &amp;quot;move forward&amp;quot; and &amp;quot;turn right&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import turtle&lt;br /&gt;
&lt;br /&gt;
pen = turtle.Turtle()&lt;br /&gt;
&lt;br /&gt;
for side in range(4):&lt;br /&gt;
    pen.forward(100)&lt;br /&gt;
    pen.right(90)&lt;br /&gt;
&lt;br /&gt;
turtle.done()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Turtle-animation.gif|420px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
Once the square works, you can experiment with different numbers of sides, turning angles, colors, or repeated shapes.&lt;br /&gt;
&lt;br /&gt;
[[File:Square pattern.png|420px|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Pattern idea:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import turtle&lt;br /&gt;
&lt;br /&gt;
pen = turtle.Turtle()&lt;br /&gt;
pen.speed(0)&lt;br /&gt;
&lt;br /&gt;
for step in range(36):&lt;br /&gt;
    for side in range(4):&lt;br /&gt;
        pen.forward(80)&lt;br /&gt;
        pen.right(90)&lt;br /&gt;
    pen.right(10)&lt;br /&gt;
&lt;br /&gt;
turtle.done()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before changing the code, predict what the drawing will look like. Then test your prediction and explain what happened.&lt;br /&gt;
&lt;br /&gt;
[https://docs.python.org/3/library/turtle.html Official Python turtle documentation]&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Mini Project: Build a Quiz Game =&lt;br /&gt;
&lt;br /&gt;
This project combines variables, input, decisions, and a score.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
score = 0&lt;br /&gt;
&lt;br /&gt;
answer = input(&amp;quot;Which keyword starts a decision in Python? &amp;quot;)&lt;br /&gt;
&lt;br /&gt;
if answer.lower() == &amp;quot;if&amp;quot;:&lt;br /&gt;
    print(&amp;quot;Correct!&amp;quot;)&lt;br /&gt;
    score = score + 1&lt;br /&gt;
else:&lt;br /&gt;
    print(&amp;quot;The answer is if.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
answer = input(&amp;quot;Which function displays text? &amp;quot;)&lt;br /&gt;
&lt;br /&gt;
if answer.lower() == &amp;quot;print&amp;quot;:&lt;br /&gt;
    print(&amp;quot;Correct!&amp;quot;)&lt;br /&gt;
    score = score + 1&lt;br /&gt;
else:&lt;br /&gt;
    print(&amp;quot;The answer is print.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;Your score is&amp;quot;, score)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Improve the project by adding more questions, storing questions in a list, or writing a function that checks an answer. Make sure your questions are fair and your feedback is helpful.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Responsible and Safe Coding =&lt;br /&gt;
&lt;br /&gt;
Programming gives you the power to create useful tools, games, art, and experiments. Use that power responsibly.&lt;br /&gt;
&lt;br /&gt;
# [[English:Privacy|Protect privacy]]: Do not collect unnecessary personal information in beginner projects.&lt;br /&gt;
# [[English:Copyright|Respect creators]]: Use media and code according to their licenses and give credit when required.&lt;br /&gt;
# [[English:Cybersecurity|Do not harm systems]]: Do not use school coding activities to bypass rules, access accounts, or interfere with devices or networks.&lt;br /&gt;
# [[English:Accessibility|Design for different users]]: Choose readable text, clear instructions, and sensible input options.&lt;br /&gt;
# [[English:Testing|Test fairly]]: Try different inputs, including unexpected ones, and improve the program when you find problems.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Interactive Tasks =&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Quiz: Test Your Knowledge ==&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Which Python function displays text on the screen?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(print)&lt;br /&gt;
(!input)&lt;br /&gt;
(!range)&lt;br /&gt;
(!append)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Which kind of value is used for text in Python?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(string)&lt;br /&gt;
(!integer)&lt;br /&gt;
(!float)&lt;br /&gt;
(!boolean)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What does the statement score = 5 do?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(It stores the value five under the name score)&lt;br /&gt;
(!It repeats the program five times)&lt;br /&gt;
(!It deletes the variable named score)&lt;br /&gt;
(!It asks the user for a score)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What type of value does input return before conversion?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(string)&lt;br /&gt;
(!integer)&lt;br /&gt;
(!float)&lt;br /&gt;
(!boolean)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Which keyword begins a basic decision in Python?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(if)&lt;br /&gt;
(!for)&lt;br /&gt;
(!def)&lt;br /&gt;
(!import)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Why is indentation important in Python?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(It shows which statements belong to a block)&lt;br /&gt;
(!It changes every number into text)&lt;br /&gt;
(!It adds comments automatically)&lt;br /&gt;
(!It saves the program as a file)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What does a for loop help a program do?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(Repeat instructions)&lt;br /&gt;
(!Rename Python)&lt;br /&gt;
(!Close every file)&lt;br /&gt;
(!Remove all variables)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Which Python structure stores several ordered values?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(list)&lt;br /&gt;
(!comment)&lt;br /&gt;
(!operator)&lt;br /&gt;
(!condition)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Which keyword is used to define a function?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(def)&lt;br /&gt;
(!returning)&lt;br /&gt;
(!repeat)&lt;br /&gt;
(!function)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MC}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;What is debugging?&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
(Finding and fixing problems in a program)&lt;br /&gt;
(!Deleting every line of code)&lt;br /&gt;
(!Turning all variables into strings)&lt;br /&gt;
(!Running code without testing it)&lt;br /&gt;
&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Memory Game ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;memo-quiz&amp;quot;&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| Variable || A name that refers to a stored value&lt;br /&gt;
|-&lt;br /&gt;
| String || A value that represents text&lt;br /&gt;
|-&lt;br /&gt;
| Boolean || A logical value that is either True or False&lt;br /&gt;
|-&lt;br /&gt;
| Loop || A structure that repeats instructions&lt;br /&gt;
|-&lt;br /&gt;
| List || An ordered collection of values&lt;br /&gt;
|-&lt;br /&gt;
| Function || A named reusable block of code&lt;br /&gt;
|-&lt;br /&gt;
| Debugging || The process of finding and fixing program problems&lt;br /&gt;
|}&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Drag and Drop ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;lueckentext-quiz&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Match the correct terms.&lt;br /&gt;
! Topic&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Displays output&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| print function&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Gets text from a user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| input function&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Chooses between actions&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| conditional statement&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Repeats a block&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| loop&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Stores several ordered values&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| list&lt;br /&gt;
|}&lt;br /&gt;
{{E}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Crossword Puzzle ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;kreuzwort-quiz&amp;quot;&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| Variable || What name can refer to a value that may change?&lt;br /&gt;
|-&lt;br /&gt;
| String || What data type is used for text?&lt;br /&gt;
|-&lt;br /&gt;
| Boolean || What data type can be True or False?&lt;br /&gt;
|-&lt;br /&gt;
| Function || What reusable named block of code can perform a task?&lt;br /&gt;
|-&lt;br /&gt;
| Indentation || What spacing shows code blocks in Python?&lt;br /&gt;
|-&lt;br /&gt;
| Debugging || What process finds and fixes problems in code?&lt;br /&gt;
|}&lt;br /&gt;
{{E}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== LearningApps ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iframe&amp;gt; https://learningapps.org/index.php?s=Introduction+to+Python &amp;lt;/iframe&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
== Cloze Text ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;quiz display=simple&amp;gt;&lt;br /&gt;
{&amp;#039;&amp;#039;&amp;#039;Complete the text.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
|type=&amp;quot;{}&amp;quot;}&lt;br /&gt;
A Python program contains { instructions } that tell a computer what to do. A named place that refers to a value is called a { variable }. Text data is commonly stored as a { string }. The input function first returns the user&amp;#039;s answer as { text }. An if statement makes a { decision } based on a condition. A for loop can { repeat } a block of instructions. A list stores several values in an { ordered } collection. A reusable named block of code is a { function }. Finding and fixing problems in a program is called { debugging }.&lt;br /&gt;
&amp;lt;/quiz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Open-Ended Tasks =&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
=== Easy ===&lt;br /&gt;
# [[English:Personal Greeting Program|Personal Greeting Program]]: Write a Python program that asks for a first name or nickname and prints a friendly greeting. Test it with at least three different inputs.&lt;br /&gt;
# [[English:Python Calculator Card|Python Calculator Card]]: Create a one-page illustrated guide showing the operators for addition, subtraction, multiplication, division, remainder, and powers, with one Python example for each.&lt;br /&gt;
# [[English:Variable Story|Variable Story]]: Write a short program that stores a character name, age, favorite activity, and one Boolean value, then prints a four-line description.&lt;br /&gt;
# [[English:Debugging Detective|Debugging Detective]]: Create a small Python program with three beginner mistakes, exchange it with a classmate, and write down how each mistake was found and fixed.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
=== Standard ===&lt;br /&gt;
# [[English:Class Survey Program|Class Survey Program]]: Design a program that asks a safe, non-personal class survey question, stores several possible answers, and explains how the data could be counted without collecting sensitive information.&lt;br /&gt;
# [[English:Weather Decision Program|Weather Decision Program]]: Build a program that uses input and if, elif, and else to suggest an activity for several weather conditions. Draw a flowchart before coding.&lt;br /&gt;
# [[English:Turtle Pattern Gallery|Turtle Pattern Gallery]]: Produce at least three turtle drawings by changing loop counts, distances, and angles. Save screenshots and explain which code changes caused each visual change.&lt;br /&gt;
# [[English:Interview a Coder|Interview a Coder]]: Interview a teacher, student, family member, or local professional who uses programming. Ask how they learned, how they debug, and where Python or another language helps in their work.&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
=== Advanced ===&lt;br /&gt;
# [[English:Quiz Game Upgrade|Quiz Game Upgrade]]: Expand the course quiz game so that it has at least five questions, useful feedback, a score, and at least one function. Explain your testing method.&lt;br /&gt;
# [[English:Number Guessing Design|Number Guessing Design]]: Plan and build a number-guessing game using a loop and decisions. Add a limit on attempts and give feedback that helps the player without revealing the answer immediately.&lt;br /&gt;
# [[English:School Helper Prototype|School Helper Prototype]]: Identify a small school problem that could be helped by a simple program, create a paper or digital prototype, implement a Python version, and collect feedback from at least two test users.&lt;br /&gt;
# [[English:Python Explainer Video|Python Explainer Video]]: Produce a two-to-four-minute video that teaches one concept from variables, conditionals, loops, lists, functions, or debugging. Include your own code example and a short challenge for viewers.&lt;br /&gt;
&lt;br /&gt;
{{:Open Task - Create a MOOC}}&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Learning Assessment =&lt;br /&gt;
&lt;br /&gt;
# [[English:Explain Program Flow|Explain Program Flow]]: Given a short program that uses input, a decision, and output, explain the order in which the computer carries out the instructions and justify what will be displayed for two different inputs.&lt;br /&gt;
# [[English:Repair a Broken Program|Repair a Broken Program]]: Diagnose a program containing a syntax problem, a type problem, and a logic problem, then explain how each correction changes the program&amp;#039;s behavior.&lt;br /&gt;
# [[English:Compare Loop Solutions|Compare Loop Solutions]]: Solve one repetition problem with a for loop and another with a while loop, then explain why each loop type is suitable for its task.&lt;br /&gt;
# [[English:Design with Functions|Design with Functions]]: Refactor a repeated section of code into a function with a parameter, test it with at least three arguments, and explain how the new design improves readability or reuse.&lt;br /&gt;
# [[English:Transfer to Mathematics|Transfer to Mathematics]]: Write a Python program that calculates a mathematical quantity studied in class, verify the result by hand for one example, and discuss any assumptions in the program.&lt;br /&gt;
# [[English:Evaluate User Experience|Evaluate User Experience]]: Test a classmate&amp;#039;s beginner program, give evidence-based feedback on prompts, error handling, readability, and usefulness, and propose two specific improvements.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Evidence of Learning =&lt;br /&gt;
&lt;br /&gt;
Strong evidence of learning can include both what you know and what you can create.&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Knowledge&amp;#039;&amp;#039;&amp;#039;: You can explain variables, data types, input, output, conditions, loops, lists, functions, and debugging in your own words.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Code reading&amp;#039;&amp;#039;&amp;#039;: You can trace short Python programs and predict outputs for given inputs.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Code writing&amp;#039;&amp;#039;&amp;#039;: You can write and run small programs that combine several core Python ideas.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Debugging skill&amp;#039;&amp;#039;&amp;#039;: You can use error messages, tests, and print statements to locate and fix problems.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Algorithmic thinking&amp;#039;&amp;#039;&amp;#039;: You can plan a solution as steps or a flowchart before writing code.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Project work&amp;#039;&amp;#039;&amp;#039;: You can produce a working program, game, visual pattern, or school-use prototype and explain its design.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Communication&amp;#039;&amp;#039;&amp;#039;: You can explain your code clearly to another learner and use appropriate programming vocabulary.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Transfer&amp;#039;&amp;#039;&amp;#039;: You can apply Python to a new task in mathematics, science, art, technology, or another school subject.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Responsible practice&amp;#039;&amp;#039;&amp;#039;: You can make choices that protect privacy, respect creators, and avoid harmful uses of code.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Reflection&amp;#039;&amp;#039;&amp;#039;: You can describe what you changed after testing and why the improved version works better.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= OERs on the Topic =&lt;br /&gt;
&lt;br /&gt;
The following openly accessible resources can help you review or extend your learning.&lt;br /&gt;
&lt;br /&gt;
[https://docs.python.org/3/tutorial/ Official Python Tutorial]&lt;br /&gt;
&lt;br /&gt;
[https://docs.python.org/3/library/turtle.html Official Python turtle documentation]&lt;br /&gt;
&lt;br /&gt;
{{#ev:youtube|https://www.youtube.com/watch?v=rfscVS0vtbw|500|center}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iframe&amp;gt; https://en.m.wikipedia.org/wiki/Python_(programming_language) &amp;lt;/iframe&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= Linked Learning Areas =&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
{{:D-Tab}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[English:Introduction to Python|Introduction to Python]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# [[English:Computer science|Computer science]]&lt;br /&gt;
# [[English:Programming|Programming]]&lt;br /&gt;
# [[English:Algorithm|Algorithm]]&lt;br /&gt;
# [[English:Variable (computer science)|Variable (computer science)]]&lt;br /&gt;
# [[English:Data type|Data type]]&lt;br /&gt;
# [[English:Conditional statement|Conditional statement]]&lt;br /&gt;
# [[English:Loop (computing)|Loop (computing)]]&lt;br /&gt;
# [[English:List (computing)|List (computing)]]&lt;br /&gt;
# [[English:Subroutine|Subroutine]]&lt;br /&gt;
# [[English:Debugging|Debugging]]&lt;br /&gt;
# [[English:Turtle graphics|Turtle graphics]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Python connects naturally with several school learning areas. In [[English:Mathematics|Mathematics]], you can calculate, test patterns, and explore coordinates. In [[English:Science|Science]], you can model measurements and organize data. In [[English:Art|Art]], turtle graphics can create geometric designs. In [[English:Technology education|Technology education]], you can build and test digital solutions. In [[English:English language|English]], you can practice precise instructions, explain procedures, and write clear user messages.&lt;br /&gt;
&lt;br /&gt;
[[Category:English]]&lt;br /&gt;
[[Category:Grades 7-8]]&lt;br /&gt;
[[Category:Computer Science]]&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:Digital Literacy]]&lt;br /&gt;
&lt;br /&gt;
{{BR}}&lt;br /&gt;
= aiMOOC Projects =&lt;br /&gt;
[[Category:English]]&lt;br /&gt;
[[Category:Introduction to Python]]&lt;br /&gt;
[[Category:Computer Science]]&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:Digital Literacy]]&lt;br /&gt;
[[Category:Grades 7-8]]&lt;br /&gt;
[[Category:AI_MOOC]]&lt;br /&gt;
[[Category:GPT aiMOOC]]&lt;br /&gt;
{{MT}}&lt;/div&gt;</summary>
		<author><name>Glanz</name></author>
	</entry>
</feed>