Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Write a python program to print the grade of a student based on Test score using nested if - else conditions. Test Score

1. Write a python program to print the grade of a student based on Test score using nested if-else conditions.
Test Score Grade
90 and above A
8089 B
7079 C
6069 D
Below 60 F
2. Write a python program to check if a password is valid or not. A password is valid if :
a. The total length of password should be greater than 5 but less than or equal to 10.
b. All characters should be uppercase.
3. Write a python program to check if a number is a multiple of 2 but not 3.
4. What should be the values of a ,b and c for the output result to be TRUE. (a, b, c are Boolean values).
result =(a and b) or (c and (not b))
Print the result in the output.
5. Print below pattern using for loop.
*****
****
***
**
*
Note: Do not hardcode the values or do not use multiple print statements for the output. Just solve using for loop.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

Students also viewed these Databases questions