0% found this document useful (0 votes)
78 views

CSUK 101 Programming Challenges - Workbook (2) (AutoRecovered)

Uploaded by

mahirhkhn
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

CSUK 101 Programming Challenges - Workbook (2) (AutoRecovered)

Uploaded by

mahirhkhn
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 115

This Workbook Belongs to: Mahir

Khan_____

CSUK’s
101 Programming Challenges
Workbook
CSUK’s 101 Programming Challenges Tracking Sheet
ComputerScienceUK.com CSUK:Teacher

Tick off the challenges as you go!

No. Challenge Name  No Challenge Name 


.
1 Hello, World! 51 Armstrong Number Checker
2 Input and Output 52 Quadratic Equation Solver
3 Simple Addition 53 Rock, Paper, Scissors Game
4 Odd or Even 54 Guess the Number Game
5 Generate Multiplication Table 55 Remove Punctuation from a String
6 Find ASCII Value of a Character 56 Merge Two Lists
7 Simple Interest Calculator 57 Find the Second Largest Number in a List
8 Area of a Circle 58 Check for Anagrams
9 Area of a Triangle 59 Find Common Elements in Two Lists
10 Swap Two Variables 60 Fibonacci Series Using Recursion
11 Random Number Generator 61 Factorial Using Recursion
12 Calculate the Sum of a List 62 Calculate GCD of Two Numbers
13 Generate a List of Even Numbers 63 Calculate LCM of Two Numbers
14 Calculate the Average of Numbers in a List 64 Check for Armstrong Numbers in an Interval
15 Convert Celsius to Fahrenheit 65 Check for Prime Numbers in an Interval
16 Simulate a Dice Roll 66 Check if a String is a Pangram
17 Leap Year Checker 67 Count the Frequency of Words in a String
18 Simple Calculator 68 Print the Following Pattern
19 Factorial Calculator 69 Print the Reverse of the Above Pattern
20 Fibonacci Sequence 70 Print a Pyramid Pattern
21 Prime Number Checker 71 Simple Number Guessing Game
22 Largest of Three Numbers 72 Convert Decimal to Binary
23 Reverse a String 73 Convert Binary to Decimal
24 Palindrome Checker 74 Check if a Number is a Perfect Number
25 Count Vowels in a String 75 Check if a Number is a Strong Number
26 Sum of Digits 76 Check if a Number is a Happy Number
27 Compound Interest Calculator 77 Find the HCF and LCM of Multiple Numbers
28 Calculate the Length of a String 78 Generate a Random Password
29 Count Words in a String 79 Implement Binary Search
30 Sort a List 80 Implement Bubble Sort
31 Remove Duplicates from a List 81 Implement Selection Sort
32 Count the Number of Uppercase and Lowercase 82 Implement Insertion Sort
Letters
33 Calculate the Power of a Number 83 Transpose a Matrix
34 Check if a String is a Substring of Another String 84 Calculate the Sum of Diagonals in a Matrix
35 Find the Sum of a Series 1 + 1/2 + 1/3 + ... + 1/n 85 Check if a String is a Palindrome Using Recursion
36 Count the Occurrences of an Element in a List 86 Find the Max and Min in a List Without Using Built-in
Functions
37 Merge Two Dictionaries 87 Check if a String is a Valid Email Address
38 Generate a Random OTP (One-Time Password) 88 Find the Most Frequent Element in a List
39 Convert a List into a Comma-Separated String 89 Implement a Stack Using a List
40 Find the Longest Word in a Sentence 90 Implement a Queue Using a List
41 Find All Factors of a Number 91 Flatten a Nested List
42 Check if a Number is a Perfect Square 92 Generate a Deck of Cards
43 Reverse the Words in a Sentence 93 Implement Caesar Cipher Encryption
44 Check if Two Lists are Equal 94 Implement Caesar Cipher Decryption
45 Calculate the Distance Between Two Points 95 Check if a String is a Valid Palindrome Ignoring
Spaces
46 Find the Intersection of Two Lists 96 Check if All Characters in a String are Unique
47 Find the Union of Two Lists 97 Implement a Simple Calculator Using Functions
48 Find the Difference Between Two Lists 98 Check if a Number is a Fibonacci Number
49 Calculate the Sum of Squares of First n Natural 99 Print the First n Prime Numbers
Numbers
50 Create a Mad Libs Game 10 Find the Smallest Missing Positive Integer
0
10 Generate All Permutations of a String
1

Good Luck!

Challenge Name: 1: Hello, World!

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Difficulty: ⭐⭐⭐⭐⭐⭐
Task: Write a program that prints "Hello, World!" to the console.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL: https://coder.csuk.io/coder/5ylXR/


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 2: Input and Output


Difficulty: ⭐
Task: Write a program that asks the user for their name and greets them.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/jRvN5/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 3: Simple Addition


Difficulty: ⭐
Task: Write a program that adds two numbers provided by the user.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/qxVmr/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 4: Odd or Even


Difficulty: ⭐
Task: Write a program that determines if a number is odd or even.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/wpEvJ/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 5: Generate Multiplication Table


Difficulty: ⭐
Task: Generate the multiplication table for a given number.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/PNMEz/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 6: Find ASCII Value of a Character


Difficulty: ⭐
Task: Write a program that prints the ASCII value of a character.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/0R277/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 7: Simple Interest Calculator


Difficulty: ⭐
Task: Calculate simple interest given principal, rate, and time.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/xkVxJ/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 8: Area of a Circle


Difficulty: ⭐
Task: Write a program to calculate the area of a circle given its radius.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/G6YG8/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 9: Area of a Triangle


Difficulty: ⭐
Task: Calculate the area of a triangle given its base and height.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/QWNVL/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 10: Swap Two Variables


Difficulty: ⭐
Task: Write a program to swap two variables without using a temporary
variable.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/5yljv/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 11: Random Number Generator


Difficulty: ⭐
Task: Write a program that generates a random number between 1 and
100.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL: https://coder.csuk.io/coder/zpB2m/


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 12: Calculate the Sum of a List


Difficulty: ⭐
Task: Write a program to calculate the sum of all numbers in a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL: https://coder.csuk.io/coder/68mrl/


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 13: Generate a List of Even Numbers


Difficulty: ⭐
Task: Write a program to generate a list of even numbers from 1 to 100.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL: https://coder.csuk.io/coder/rkEyE/


‘?;=p.0lScreenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 14: Calculate the Average of Numbers in a List


Difficulty: ⭐
Task: Write a program to calculate the average of numbers in a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/Nk7yp/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 15: Convert Celsius to Fahrenheit


Difficulty: ⭐
Task: Write a program to convert temperature from Celsius to
Fahrenheit.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code
https://coder.csuk.io/coder/xk9xE/
URL:
Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 16: Simulate a Dice Roll


Difficulty: ⭐
Task: Write a program to simulate rolling a dice.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL: https://coder.csuk.io/coder/DkPo5/


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 17: Leap Year Checker


Difficulty: ⭐
Task: Write a program to check if a year is a leap year.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 18: Simple Calculator


Difficulty: ⭐
Task: Create a calculator that can add, subtract, multiply, and divide two
numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 19: Factorial Calculator


Difficulty: ⭐
Task: Write a program to calculate the factorial of a number.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 20: Fibonacci Sequence


Difficulty: ⭐
Task: Generate the Fibonacci sequence up to a certain number of terms.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 21: Prime Number Checker


Difficulty: ⭐
Task: Write a program to check if a number is prime.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 22: Largest of Three Numbers


Difficulty: ⭐⭐
Task: Write a program to find the largest among three numbers input by
the user.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 23: Reverse a String


Difficulty: ⭐⭐
Task: Write a program that reverses a string input by the user.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 24: Palindrome Checker


Difficulty: ⭐⭐
Task: Write a program to check if a string is a palindrome.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 25: Count Vowels in a String


Difficulty: ⭐⭐
Task: Write a program that counts the number of vowels in a string.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 26: Sum of Digits


Difficulty: ⭐⭐
Task: Write a program to calculate the sum of digits of a number.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 27: Compound Interest Calculator


Difficulty: ⭐⭐
Task: Calculate compound interest given principal, rate, and time.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 28: Calculate the Length of a String


Difficulty: ⭐⭐
Task: Write a program to find the length of a string without using len().

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 29: Count Words in a String


Difficulty: ⭐⭐
Task: Write a program that counts the number of words in a string.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 30: Sort a List


Difficulty: ⭐⭐
Task: Write a program to sort a list of numbers in ascending order.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 31: Remove Duplicates from a List


Difficulty: ⭐⭐
Task: Write a program to remove duplicates from a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 32: Count the Number of Uppercase and Lowercase


Letters
Difficulty: ⭐⭐
Task: Write a program that counts uppercase and lowercase letters in a
string.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 33: Calculate the Power of a Number


Difficulty: ⭐⭐
Task: Write a program to calculate the power of a number without using
the ** operator.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 34: Check if a String is a Substring of Another String


Difficulty: ⭐⭐
Task: Write a program to check if one string is a substring of another.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 35: Find the Sum of a Series 1 + 1/2 + 1/3 + ... + 1/n
Difficulty: ⭐⭐
Task: Write a program to calculate the sum of the series up to n terms.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 36: Count the Occurrences of an Element in a List


Difficulty: ⭐⭐
Task: Write a program to count how many times an element occurs in a
list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 37: Merge Two Dictionaries


Difficulty: ⭐⭐
Task: Write a program to merge two dictionaries into one.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 38: Generate a Random OTP (One-Time Password)


Difficulty: ⭐⭐
Task: Write a program to generate a random 6-digit OTP.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 39: Convert a List into a Comma-Separated String


Difficulty: ⭐⭐
Task: Write a program to convert a list of numbers into a comma-
separated string.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 40: Find the Longest Word in a Sentence


Difficulty: ⭐⭐
Task: Write a program to find the longest word in a given sentence.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 41: Find All Factors of a Number


Difficulty: ⭐⭐
Task: Write a program to find and display all the factors of a given
positive integer. A factor is a number that divides another number
completely without leaving any remainder.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 42: Check if a Number is a Perfect Square


Difficulty: ⭐⭐
Task: Write a program to check if a given number is a perfect square. A
perfect square is a number that is the square of an integer.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 43: Reverse the Words in a Sentence


Difficulty: ⭐⭐
Task: Write a program that takes a sentence as input and reverses the
order of words in the sentence.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 44: Check if Two Lists are Equal


Difficulty: ⭐⭐
Task: Write a program to check if two lists have the same elements in
the same order.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 45: Calculate the Distance Between Two Points


Difficulty: ⭐⭐
Task: Write a program to calculate the Euclidean distance between two
points in 2D space.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 46: Find the Intersection of Two Lists


Difficulty: ⭐⭐
Task: Write a program to find the elements common to two lists.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 47: Find the Union of Two Lists


Difficulty: ⭐⭐
Task: Write a program to find all unique elements from two lists.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 48: Find the Difference Between Two Lists


Difficulty: ⭐⭐
Task: Write a program to find elements present in one list but not the
other.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 49: Calculate the Sum of Squares of First n Natural


Numbers
Difficulty: ⭐⭐
Task: Write a program to calculate the sum of squares of first n natural
numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 50: Create a Mad Libs Game


Difficulty: ⭐⭐
Task: Write a program that asks the user for inputs and generates a
funny story (Mad Libs).

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 51: Armstrong Number Checker


Difficulty: ⭐⭐⭐
Task: Write a program to check if a number is an Armstrong number.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 52: Quadratic Equation Solver


Difficulty: ⭐⭐⭐
Task: Write a program to solve quadratic equations.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 53: Rock, Paper, Scissors Game


Difficulty: ⭐⭐⭐
Task: Create a simple rock, paper, scissors game against the computer.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 54: Guess the Number Game


Difficulty: ⭐⭐⭐
Task: Write a program where the computer chooses a number, and the
user tries to guess it.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 55: Remove Punctuation from a String


Difficulty: ⭐⭐⭐
Task: Write a program that removes punctuation from a given string.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 56: Merge Two Lists


Difficulty: ⭐⭐⭐
Task: Write a program to merge two lists into a dictionary.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 57: Find the Second Largest Number in a List


Difficulty: ⭐⭐⭐
Task: Write a program to find the second largest number in a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 58: Check for Anagrams


Difficulty: ⭐⭐⭐
Task: Write a program to check if two strings are anagrams.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 59: Find Common Elements in Two Lists


Difficulty: ⭐⭐⭐
Task: Write a program to find common elements between two lists.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 60: Fibonacci Series Using Recursion


Difficulty: ⭐⭐⭐
Task: Write a recursive function to generate the Fibonacci series.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 61: Factorial Using Recursion


Difficulty: ⭐⭐⭐
Task: Write a recursive function to calculate the factorial of a number.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 62: Calculate GCD of Two Numbers


Difficulty: ⭐⭐⭐
Task: Write a program to find the greatest common divisor (GCD) of two
numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 63: Calculate LCM of Two Numbers


Difficulty: ⭐⭐⭐
Task: Write a program to find the least common multiple (LCM) of two
numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 64: Check for Armstrong Numbers in an Interval


Difficulty: ⭐⭐⭐
Task: Find all Armstrong numbers between two given numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 65: Check for Prime Numbers in an Interval


Difficulty: ⭐⭐⭐
Task: Find all prime numbers between two given numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 66: Check if a String is a Pangram


Difficulty: ⭐⭐⭐
Task: Write a program to check if a string contains all letters of the
alphabet.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 67: Count the Frequency of Words in a String


Difficulty: ⭐⭐⭐
Task: Write a program to count the frequency of each word in a string.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 68: Print the Following Pattern


Difficulty: ⭐⭐⭐ *
Task: Print the given pattern: **
***
****
Instructions: *****
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 69: Print the Reverse of the Above Pattern


Difficulty: ⭐⭐⭐ *****
Task: Print the reverse of the pattern: ****
***
**
Instructions: *
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 70: Print a Pyramid Pattern


Difficulty: ⭐⭐⭐
*
Task: Print a pyramid pattern:
***
*****
Instructions: *******
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 71: Simple Number Guessing Game


Difficulty: ⭐⭐⭐
Task: Create a game where the user has limited attempts to guess a
number.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 72: Convert Decimal to Binary


Difficulty: ⭐⭐⭐
Task: Write a program to convert a decimal number to binary.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 73: Convert Binary to Decimal


Difficulty: ⭐⭐⭐
Task: Write a program to convert an integer binary number to decimal.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 74: Check if a Number is a Perfect Number


Difficulty: ⭐⭐⭐
Task: Write a program to check if a number is perfect (sum of its proper
divisors equals the number).

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 75: Check if a Number is a Strong Number


Difficulty: ⭐⭐⭐
Task: Write a program to check if a number is a strong number (sum of
factorial of its digits equals the number).

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 76: Check if a Number is a Happy Number


Difficulty: ⭐⭐⭐
Task: Write a program to check if a number is a happy number.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 77: Find the HCF and LCM of Multiple Numbers
Difficulty: ⭐⭐⭐
Task: Write a program to find the HCF and LCM of a list of numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 78: Generate a Random Password


Difficulty: ⭐⭐⭐
Task: Write a program to generate a random password containing letters
and numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 79: Implement Binary Search


Difficulty: ⭐⭐⭐
Task: Write a program to perform binary search on a sorted list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 80: Implement Bubble Sort


Difficulty: ⭐⭐⭐
Task: Write a program to sort a list using bubble sort algorithm.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 81: Implement Selection Sort


Difficulty: ⭐⭐⭐
Task: Write a program to sort a list using selection sort algorithm.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 82: Implement Insertion Sort


Difficulty: ⭐⭐⭐
Task: Write a program to sort a list using insertion sort algorithm.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 83: Transpose a Matrix


Difficulty: ⭐⭐⭐
Task: Write a program to transpose a 2D matrix.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 84: Calculate the Sum of Diagonals in a Matrix


Difficulty: ⭐⭐⭐
Task: Write a program to calculate the sum of the main and secondary
diagonals in a square matrix.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 85: Check if a String is a Palindrome Using Recursion


Difficulty: ⭐⭐⭐
Task: Write a recursive function to check if a string is a palindrome.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 86: Find the Max and Min in a List Without Using Built-
in Functions
Difficulty: ⭐⭐⭐
Task: Write a program to find the maximum and minimum numbers in a
list without using built-in functions.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 87: Check if a String is a Valid Email Address


Difficulty: ⭐⭐⭐
Task: Write a program to validate an email address.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 88: Find the Most Frequent Element in a List


Difficulty: ⭐⭐⭐
Task: Write a program to find the most frequent element in a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 89: Implement a Stack Using a List


Difficulty: ⭐⭐⭐
Task: Write a program to implement a stack using a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 90: Implement a Queue Using a List


Difficulty: ⭐⭐⭐
Task: Write a program to implement a queue using a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 91: Flatten a Nested List


Difficulty: ⭐⭐⭐
Task: Write a program to flatten a list that contains nested lists.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 92: Generate a Deck of Cards


Difficulty: ⭐⭐⭐
Task: Write a program to generate a standard deck of 52 cards.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 93: Implement Caesar Cipher Encryption


Difficulty: ⭐⭐⭐
Task: Write a program to encrypt a message using Caesar cipher.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 94: Implement Caesar Cipher Decryption


Difficulty: ⭐⭐⭐
Task: Write a program to decrypt a message encrypted with Caesar
cipher.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 95: Check if a String is a Valid Palindrome Ignoring


Spaces
Difficulty: ⭐⭐⭐
Task: Write a program to check if a string is a palindrome, ignoring
spaces and punctuation.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 96: Check if All Characters in a String are Unique


Difficulty: ⭐⭐⭐
Task: Write a program to determine if a string has all unique characters.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 97: Implement a Simple Calculator Using Functions


Difficulty: ⭐⭐⭐
Task: Write a program to create a simple calculator using functions for
each operation.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 98: Check if a Number is a Fibonacci Number


Difficulty: ⭐⭐⭐
Task: Write a program to check if a given number is in the Fibonacci
sequence.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 99: Print the First n Prime Numbers


Difficulty: ⭐⭐⭐
Task: Write a program to print the first n prime numbers.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 100: Find the Smallest Missing Positive Integer


Difficulty: ⭐⭐⭐
Task: Write a program to find the smallest positive integer missing from
a list.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Challenge Name: 101: Generate All Permutations of a String


Difficulty: ⭐⭐⭐
Task: Write a program to generate all permutations of a given string.

Instructions:
Code Your Solution: Visit coder.csuk.io and use the online IDE to write your Python code.
Save Your Work: Once you’ve completed your solution, save your code by generating a
unique URL directly on the platform.
Share Your Code: Copy the URL of your saved code and paste it below.
Submit a Screenshot: Take a screenshot of your code output and paste it along with your
URL.

Saved Code URL:


Screenshot of My Solution

Computer Science UK Membership Site Licence: Do not share outside of your centre
ComputerScienceUK.com CSUK:Teacher

Computer Science UK Membership Site Licence: Do not share outside of your centre

You might also like