98-381 Exam QuestionsBrowse all questions from this exam

98-381 Exam - Question 7


DRAG DROP -

You are creating a Python script to evaluate input and check for upper and lower case.

Which four code segments should you use to develop the solution? To answer, move the appropriate code segment from the list of code segments to the answer area and arrange them in the correct order.

Select and Place:

Exam 98-381 Question 7
Show Answer
Correct Answer:
Exam 98-381 Question 7

References: https://www.w3resource.com/python/python-while-loop.php

Discussion

3 comments
Sign in to comment
FuzzyDunlop
Jul 7, 2020

The solution looks correct

Shw7
Jul 10, 2021

Working Code: name = input("Enter your name:") if name.lower() == name: print( name ," its lower") if name.upper() == name: print( name ," its Upper")

codibel
Mar 20, 2021

The print statement uses a comma between segments which works, but aren't 2 strings concatenated with a plus + symbol? I tried both and the difference is in the display with the plus symbol needed an extra character space name and "bla bla bla"