Complete guide for beginners who want to learn programming using Pocket Code as their first IDE.
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.
Download Pocket Code from the Google Play Store and open the app.
main.py file# 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")
Tap the βΆοΈ button to run. The output appears in the integrated terminal.
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)
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 π")
Repeat actions:
# Multiplication table
number = 7
for i in range(1, 11):
result = number * i
print(f"{number} Γ {i} = {result}")
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}")
Pocket Code's AI assistant is your personal tutor:
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!