Collection of Python Code (1)

Collection of Python Code (1)

1. Rainbow import turtle as t c = ["red", "orange", "yellow", "green", "cyan", "indigo", "violet"] t.speed(10) t.pensize(30) for i in range(7): t.penup() t.goto(-150 + i * 30, 0) t.setheading(90) t.color(c[i]) t.pendown() t.circle(-300 + i * 30, 180) 2. Colorful Flowers import turtle as t import colorsys as cs t.speed(0) t.bgcolor("black") for i in range(25): for … Read more

Fun Python Drawing: Rainbow Array! A Programming Art Class for Elementary Students

Fun Python Drawing: Rainbow Array! A Programming Art Class for Elementary Students

Programming ≠ boring code! Today, we will use Python to summon the “magic turtle” and draw a glowing rainbow magic array~ Even my mom said it looks like a piece of art! Step 1: Summon the “Code Turtle” Python has a super fun <span>turtle</span> library, which is like a obedient little turtle 🐢! Just give … Read more

Fun Python Drawing: Creating the Windows Logo

Fun Python Drawing: Creating the Windows Logo

1. Introduction: When Programming Meets Art In the digital age, Python is not only a powerful tool for developers but also a brush for artists. Today, we will use the Turtle graphics library to draw the Windows Logo with just 20 lines of code. The result is as follows: 2. Code Breakdown: Building the Artistic … Read more

Python Turtle Graphics: Number Guessing Game

Python Turtle Graphics: Number Guessing Game

Dear friends, I believe many of you have played the number guessing game in the command line before! Playing the number guessing game in the command line means staring at a black command line, right? In this issue, I will guide you to bring the number guessing game into a graphical interface! We will create … Read more

Drawing A Christmas Tree With Python

Drawing A Christmas Tree With Python

Click the blue text to follow us Python Teaching Hello everyone! Today’s lesson is about Drawing a Christmas tree with Python~ Let’s learn together! Part 1 1. Import Libraries from turtle import * from random import * import math Part 2 2. Define Basic Drawing Directions def Rightdraw(Range,Fd,Right): for i in range(Range): # Number of … Read more

Introduction to Python: Lesson 1 – Hello Python and Environment

Introduction to Python: Lesson 1 - Hello Python and Environment

Lesson 1 – Hello Python and Environment (1.5 to 2 hours practical lesson plan, no tables) 3 minutes pre-class check Computer can open VS Code Terminal input python –version shows 3.x GitHub account is logged in Class timeline (90 min) 0–10 min Icebreaker Teacher says: Today we will use just 5 lines of code to … Read more

Python Beginner Tutorial Lesson 1: Hello Python

Python Beginner Tutorial Lesson 1: Hello Python

Pre-class 5 min: Confirm three things Python 3.11+ is installed VS Code (or PyCharm Edu) has the Python extension installed GitHub account is registered and joined Classroom (the teacher sends an invitation link in advance) Part A Theory 20% (15 min) Using 3 very simple PPT slides: Slide 1: A one-sentence summary of what Python … Read more

Python Turtle Graphics 1

Python Turtle Graphics 1

We apologize for the two-week hiatus for various reasons. In the coming time, we will maintain a daily update with a fresh approach and different content, allowing more children to experience the charm of Python programming and guiding them to sail in the ocean of code!Welcome to the“Code Little General” classroom, where we are dedicated … Read more

What is Peppa? Let’s Show You with Python!

What is Peppa? Let's Show You with Python!

Big Data Digest Submission Author: Ding Yanjun Just now, the advertisement “What is Peppa” has gone viral. Peppa is clearly a comedic character, yet it moved everyone to tears. ▼ What is Peppa As the New Year approaches, the grandfather in the countryside calls his grandson in the city. The grandson says he wants “Peppa”. … Read more

Python Level 1 Exam Question Bank – First Edition | Quick Collection for Self-Testing!

Python Level 1 Exam Question Bank - First Edition | Quick Collection for Self-Testing!

Want to test your child’s Python fundamentals during the summer vacation? This complete collection of 2019 Level 1 Python exam questions includes 50 questions with no explanations, suitable for self-study and filling knowledge gaps! Come and see how many you can answer correctly! 📋 Exam Information • Number of Questions: 50 (20 True/False + 30 … Read more