Programming in Python
Welcome to computer programming!
You do not need any prior experience of programming, we will start from the very beginning. Here you will find a basic course in Python, adapted for Middle school or junior high school students.
You do not need any previous knowledge of programming or Python, we will start from the very beginning.
Do you think programming was exciting? There is much more to do.
Programming is used everywhere we see electronic devices, such as computers, phones, video games, robots, headphones, cars, speakers, etc.
Some work with programming by building websites, not only to make things happen when you press buttons, but also to design so that the website looks good on both small and large screens.
Some work in programming to develop fun apps and games. Some work on programming in large systems that in the background run our entire society, such as code that allows us to pay and transfer money, or code that ensures that electric power plants produce just as much power as needed.
Some have programming as a fun hobby or to automate parts of their home, such as having the lights at home turned off when the front door gets locked.
Review and exercises on other websites
- En guide om andra saker som kan göras med modulen Turtle: https://realpython.com/beginners-guide-python-turtle/
- Trinket: https://trinket.io/python/2d5e5e7965
- ProgrammeraPython.se (in Swedish): https://www.programmerapython.se/
- Pythonlabbet (in Swedish) : https://pythonlabbet.se/
- "Code in Swedish": https://www.youtube.com/playlist?list=PLcL5dfJqN6BWsI3SGlVuN2en-dHUVVUbr
- Kodboken (in Swedish): https://www.kodboken.se/
There are also many books that cover python from the beginning, both in Swedish and English.
- Programming languages
- Acronym
- How old are computers?
- Comments
- In what order?
- What gets printed?
- Pixel
- Modul
- Hitta tillbaka
- What gets printed? I
- What gets printed? II
- Variable names
- Will it work?
- Match the datatype
- Which conversion is correct?
- What does it mean?
- What's wrong?
- What gets printed?
- What type of error? 1
- What type of error? 2
- What type of error? 3
- What is the difference?
- What does the instruction do?
- Is there a difference?
- Module och function
- Choose the right module
- What is not the result?
- Indentation
- Which one is right? 1
- Which one is right? 2
- Correct if-statement
- What satisfies the condition? 1
- What satisfies the condition? 2
- No intended lines
- What gets printed?
- What is the difference?
- What gets printed? 1
- What gets printed? 2
- What gets printed? 3
- Infinite loop
- What gets printed?
- Infinite loop 2
- What numbers are included?
- What gets printed?
- What gets printed? 2
- Variable names
- Are the results identical?
- Is there a difference?
- What gets printed? 1
- Loop over
- What gets printed? 2
- Built-in functions
- How long is the list?
- What gets printed?
- Break
- What gets printed?
- Längd och summa
- Using functions
- Definition
- Calling the function
- Arguments
- What gets printed?
- Return
- What index?
- What gets printed? 1
- What gets printed? 2
- Sort with another sign
- Index
- Double loop
- Lyssna
- Klick
- Jump