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.
Python training exercice

Quiz
•
Computers
•
Professional Development
•
Easy
sara souna
Used 3+ times
FREE Resource
6 questions
Show all answers
1.
OPEN ENDED QUESTION
5 mins • 1 pt
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
Similar Resources on Quizizz
10 questions
Java main() and Scanner

Quiz
•
Professional Development
8 questions
Latihan DIKLAT TIK ASN NTT

Quiz
•
Professional Development
10 questions
Secure Application Development, Deployment and Automation Concep

Quiz
•
Professional Development
10 questions
ICT basics

Quiz
•
Professional Development
10 questions
CS -101 Set B (2nd Quiz)

Quiz
•
Professional Development
10 questions
networking quiz

Quiz
•
Professional Development
10 questions
Soal SKD

Quiz
•
University - Professi...
10 questions
Intro to Node.js

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade