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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started