Вы находитесь на странице: 1из 2

SCENARIO 1:

Write a Menu driven python program that user to pass the value in command line,
a. Count number of characters, special characters and Numbers.
b. Add all the numbers and display the sum is odd or even.
c. Sort the characters in descending order.

SCENARIO 2:

Write a python program to find out the given password is valid for below condition.
a. Password length should be between 8 to 10.
b. Password should be alpha numeric
c. Password should not start or end with number.
d. Password should not start or end with upper cases characters.
Validate for all possible conditions, Display the message “Entered password is not valid” if the
password is not valid and use exceptions wherever necessary.

SCENARIO 3:

Using Functions create a 2 Tic Tac Toe kind of board as shown below which will fill value from 1 to 9
in Box1 and A to I in the box2. Data value should be from the user.
Box1
| 1 | 2 | 3 |
| 3 | 5| 6 |
| 7 | 8| 9 |
Box 2
| A | B | C|
| D | E | F|
| G | H | I|

If diagonal values are same then print success.

SCENARIO 4:

<Corona_Metro_Zone>
Below you'll find a list which contains the relevant data about a corona virus status of metro cities in
India. Each item in the list is a tuple containing a metro and corona virus positive-cases(***- you
need to take the current data as on 13) in that order:

from Mohan Muniswamy to everyone:

metro = [
("Mumbai", ***),
("Chennai", ***),
("Delhi", ***),
("Gujarat", ***),
("Kolkata", ***),
("Hyderabad", ***),
("Bangalore", ***)

For this project, your program should do the following:


>Calculate the average +ve cases of all metro in the data set.
>Print out every metro that has a +ve cases higher than the average you calculated and
share the msg " Red Zone Need to be sealed. if it Half of the average the msg "Orange Zone... Need
to be Quarantine" else share message "Stay home Stay safe."
>Print out how many metro spent more than the average you calculated.
>Do by asking "How many metro want to be add ?" users to add metros to the data set
before running the calculations.
>You need to do the same for 3 different dates.

SCENARIO 5:

Swap number
The requirement is to swap the number which are in middle.
This is the functions that we need to create called swapnnum. This will only effect to the number
that are of 4 digits all remaining will not be effected.
For example the file contains as below.
Data.txt
1234
245
4578
The output should be
1324
245
4758
using functions

Вам также может понравиться