Tutorial
Pocket Code for Students: Learn to Code from Scratch
Complete guide for beginners who want to learn programming using Pocket Code as their first IDE.
4 min
By Pocket Code TeamPocket Code for Students: Learn to Code from Scratch
Want to learn to code but don't have a PC? Pocket Code is the perfect tool to get started. All you need is your Android phone.
Why Pocket Code for learning?
- No PC needed β Your phone is enough
- Built-in AI β An assistant that explains code to you
- Multiple languages β Python, JavaScript, Java, C++, Rust and more
- Free β No hidden costs
- Real projects β Create functional apps, websites, and scripts
Your first program
Step 1: Install Pocket Code
Download Pocket Code from the Google Play Store and open the app.
Step 2: Create a project
- Tap New Project
- Name it: "My First Program"
- Select the language: Python (recommended for beginners)
- The project is created with a
main.pyfile
Step 3: Write code
# My first Python program
name = input("What's your name? ")
print(f"Hello, {name}! Welcome to programming π")
# Simple calculator
num1 = float(input("First number: "))
num2 = float(input("Second number: "))
print(f"Addition: {num1 + num2}")
print(f"Subtraction: {num1 - num2}")
print(f"Multiplication: {num1 * num2}")
if num2 != 0:
print(f"Division: {num1 / num2}")
else:
print("Cannot divide by zero")
Step 4: Run
Tap the βΆοΈ button to run. The output appears in the integrated terminal.
Basic concepts
Variables
Variables are containers that store information:
# Data types
name = "Ana" # Text (string)
age = 17 # Whole number (int)
height = 1.65 # Decimal number (float)
is_student = True # True/False (boolean)
Conditionals
Make decisions in your code:
grade = 8.5
if grade >= 9:
print("Outstanding π")
elif grade >= 7:
print("Very Good π")
elif grade >= 5:
print("Pass β
")
else:
print("Fail π")
Loops
Repeat actions:
# Multiplication table
number = 7
for i in range(1, 11):
result = number * i
print(f"{number} Γ {i} = {result}")
Functions
Organize your code into reusable blocks:
def calculate_circle_area(radius):
pi = 3.14159
area = pi * radius ** 2
return round(area, 2)
# Use the function
radius = float(input("Circle radius: "))
area = calculate_circle_area(radius)
print(f"The area is: {area}")
Practice projects
Level 1: Beginner
- Calculator β Basic operations
- Temperature converter β Celsius to Fahrenheit
- Number guessing game β User guesses a random number
- To-do list β Add and display tasks
Level 2: Intermediate
- Rock, paper, scissors β Against the computer
- Quiz game β Trivia with scoring
- Password generator β Random secure passwords
- Contact book β Basic CRUD
Level 3: Advanced
- Weather API β Query and display weather data
- Telegram bot β Automate responses
- Web scraper β Extract info from web pages
- Text adventure β Interactive story game
Using AI to learn
Pocket Code's AI assistant is your personal tutor:
- Explain code: Select code and ask "What does this do?"
- Suggest improvements: "How can I improve this function?"
- Fix errors: When something fails, AI helps you understand why
- Generate examples: "Give me a list comprehension example"
Additional resources
Inside Pocket Code
- Interactive tutorials β In the Learn section
- Example projects β In the Marketplace
- Documentation β Accessible offline
Outside Pocket Code
- Practice algorithms on platforms like HackerRank
- Read official Python documentation
- Join programming communities
Recommended learning path
Week 1-2: Variables, data types, input/output
Week 3-4: Conditionals and loops
Week 5-6: Functions and modules
Week 7-8: Lists, dictionaries, files
Week 9-10: OOP (classes and objects)
Week 11-12: Personal project
You don't need a powerful computer to start coding. With Pocket Code and your Android phone, you have everything you need. Start today!