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
Answer:
examples are:
com or .edu is a top-level domain name (TLD)
cornell.edu is a second-level domain name (SLD)
bigred.cornell.edu is a third-level or three-part domain name
project.bigred.cornell.edu is a fourth-level or four-part domain name
hope this helps you.
Answer:
Following is attached the solution of each part step-by-step. I hope it will help you!
Explanation:
Answer:
50
var X gets passed into the rectangle function, which I assume would set the x and y coordinates to what the var's have already been set to.
Answer:Weak session ID generation algorithm
Explanation: Session hijacking is the hacking by disguising as the authenticated user and illegally exploit the particular computer session. IP packets are invoked by the disguised attacker into the active session between the legal computer user. It is also called session key.
It gives the hacker to use the data and services of the computer in an unauthorized manner. It arises due to the session of communication are not secure and strong,key used for session is weak etc.