Question: (Write code using Python) Given a string that has the length greater than 7 and all letters in lowercase, write a function to extract first

(Write code using Python) Given a string that has the length greater than 7 and all letters in lowercase, write a function to extract first 7 characters from the string and turns them all into uppercase.

I understand how to convert all the characters of a string to uppercase but how do I determine its length and only have the first 7 characters converted to uppercase?

Also, not really sure how to follow these logical operator questions.

Which is true

1: TRUE && FALSE || 9 >= 4 && 3 < 6

2: FALSE || TRUE && FALSE

3: TRUE && 62 < 62 && 44 >= 44

4: 99.99 > 100 || 45 < 7.3 || 4 != 4.0

Which one of the following expressions evaluates to FALSE?

1: 6 >= -9 && !(6 > 7) && !(!TRUE)

2: FALSE && 6 >= 6 || 7 >= 8 || 50 <= 49.5

3: !(8 > 4) || 5 == 5.0 && 7.8 >= 7.79

4: FALSE || TRUE && 6 != 4 || 9 > 4

What is the result of those logical operation?

6 != 10 && FALSE && 1 >= 2` or `TRUE || 5 < 9.3 || FALSE`

5 > 8 || 6 != 8 && 4 > 3.9

Will make sure to give a thumbs up. Thanks in advance!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!