Master in Python
Work through an example from class, predict what the code will do, and check your answer. Come back to the exercises when you’re revising for an exam or preparing for an interview.
Explore Programming Subjects
Worked examples and exercises for each subject.
Python
Explore Python programming through simple, practical examples. Learn to work with variables, lists, loops, conditions, and functions while developing problem-solving skills.
Open Python lesson →Java
Build a strong foundation in Java programming. Explore classes, objects, methods, constructors, inheritance, and object-oriented programming with practical coding examples.
Open Java lesson →SQL
Learn to interact with databases using SQL. Practice retrieving, filtering, sorting, grouping, and analyzing data through real-world database examples.
Open SQL lesson →C++
Strengthen your C++ programming skills through arrays, pointers, references, vectors, object-oriented programming, and Standard Template Library algorithms.
Open C++ lesson →Learn Every Concept, Step by Step.
Trace the code, then try it yourself.
1def find_even_numbers(numbers):2 even_numbers = []34 for number in numbers:5 if number % 2 == 0:6 even_numbers.append(number)78 return even_numbers910numbers = [1, 2, 3, 4, 5, 6, 7, 8]1112result = find_even_numbers(numbers)1314print("Even Numbers:", result)
Learn with clarity.
Practice with purpose.
Explore the concepts
in each lesson.
See how each subject approaches a different programming problem.
Put each concept
into practice.
Try the exercise in each lesson, then reveal the solution to compare approaches.
Python
Modify the function to return only the odd numbers from the list.
Java
Add a method called checkResult() that prints Pass when marks are greater than or equal to 40, otherwise prints Fail.
SQL
Write a SQL query to calculate the average salary of employees in each department.
C++
Modify the program to sort the numbers in descending order using the STL sort() function.
How well do you
know the concept?
Pick a question and try answering in your own words. Open the lesson to compare your reasoning with the explanation.
def find_even_numbers(numbers):even_numbers = []for number in numbers:if number % 2 == 0:even_numbers.append(number)return even_numbersnumbers = [1, 2, 3, 4, 5, 6, 7, 8]result = find_even_numbers(numbers)print("Even Numbers:", result)
Practice. Improve.
Succeed.
Revise important questions, explore coding solutions, and strengthen your technical knowledge with AskBun — completely free.
Free for every learner