Python training exercice

Python training exercice

Professional Development

6 Qs

quiz-placeholder

Similar activities

Innovacion

Innovacion

University - Professional Development

10 Qs

Què en saps de GSuite?

Què en saps de GSuite?

University - Professional Development

10 Qs

Soal SKD

Soal SKD

University - Professional Development

10 Qs

PRÁCTICA  N° S-01 -5MFT52-18 (2024A05)

PRÁCTICA N° S-01 -5MFT52-18 (2024A05)

Professional Development

10 Qs

PRACTICE  SET FOR INTERMEDIATE 2

PRACTICE SET FOR INTERMEDIATE 2

Professional Development

10 Qs

Teste - Word

Teste - Word

Professional Development

10 Qs

Connaissances générales informatiques

Connaissances générales informatiques

Professional Development

10 Qs

Prueba de Informática básica

Prueba de Informática básica

Professional Development

11 Qs

Python training exercice

Python training exercice

Assessment

Quiz

Computers

Professional Development

Practice Problem

Easy

Created by

sara souna

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

OPEN ENDED QUESTION

5 mins • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?