Answer:
mystr = input("Enter a string ")
length = len(mystr)
while length<10:
mystr = input("Enter a string ")
length = len(mystr)
if(length>=10):
break
if len(mystr)%2==0:
print(mystr.lower())
else:
print(mystr.upper())
Explanation:
The variable mystr is used to save user's input which is received with the input function
A second variable length is used to save the length of the input string Using a while statement the user is continually prompted to enter a string while length is less than 10.
If length is greater or equal to 10. We check for even or odd using the modulo (%) operator.
We use lower() and upper() to change the case of the string
Yes it does use search boxes
Answer:
There are different phases of railroad expansion with the innovations in technology.
Explanation:
Few of the technological innovations are described below that leads in railroad expansion more rapid.
1. Centralized Traffic control (CTC) is introduced in 1960's that is used to control the traffic on railroads using different signal control.
2. In 1990's after computer technology involvement, railway ticket and reservation system is automate and being centralized. That makes the railroad expansion improve.
3. Bullet train technology has been introduced, that makes the railway trains more faster.
4. Electric trains has been introduced to use green energy and reduce the dependency on the fuel to make environment clean and green.
Answer:
the visibility persists as long as both A and B exist.
Explanation:
Global visibility basically means that the visibility persists as long as both A and B exist. In programming global visibility signifies that the variable/data in question is visible from any context of the code. Meaning that it can be accessed and manipulated from any part of the code, even from within a function or another document. This makes it very easy to use and structure accordingly.