Python training exercice
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
sara souna
Used 3+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
OPEN ENDED QUESTION
5 mins • 1 pt
Average of Numbers: Write a program that takes a list of numbers as input and calculates the average. Create a function called calculate_average that accepts a list of numbers and returns the average.
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
10 mins • 1 pt
List Filtering
Write a program that takes a list of numbers as input and prints only the even numbers.
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
10 mins • 1 pt
Simple Calculator
Write a program that takes two numbers and an operator (+, -, *, /) as input and performs the corresponding operation.
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
15 mins • 1 pt
Palindrome Checker
Write a program that takes a string as input and checks whether it is a palindrome (reads the same backward as forward) or not. Create a function called is_palindrome to perform the palindrome check.
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
15 mins • 1 pt
Password Checker
Write a program that takes a password as input and checks if it meets the following criteria:
At least 8 characters long
Contains both uppercase and lowercase letters
Contains at least one digit
Note : use any() function in Python, it is a built-in function that returns True if at least one element of an iterable is true. If the iterable is empty, it returns False. Here are a couple of examples:
Evaluate responses using AI:
OFF
6.
OPEN ENDED QUESTION
15 mins • 1 pt
Number Guessing Game
Create a number-guessing game where the program randomly generates a number between 1 and 100, and the user has to guess the number. Provide hints such as "Too high" or "Too low" after each guess. Use functions to organize your code.
Note: use this function to generate a random number between 1 and 100.
Evaluate responses using AI:
OFF
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Name that App/Site
Quiz
•
Professional Development
10 questions
Google Productivity day 3
Quiz
•
Professional Development
10 questions
IT ENGLISH: Research Project Topics - IT Certifications
Quiz
•
Professional Development
10 questions
NHANH TAY, NHANH MẮT
Quiz
•
Professional Development
10 questions
Microsoft 365 for Teachers
Quiz
•
Professional Development
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
10 questions
Pos-Prueba (Libreta Profesional-One Note)
Quiz
•
Professional Development
10 questions
TRIVIA CIBERSEGURIDAD MINTEL
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
