Your issue is on line 19 in your if statement. In python, if you have more than one condition in an if statement, you have to explicitly mention it after the or.
Your if statement is
if again == "Y" or "y":
However, this will always return true because the second statement simply asks "y".
To correct this, simply change the if statement to:
if again == "Y" or again == "y":
This will correct your code.
Another thing to consider is to always convert a userinput (whenever possible) to one version, this can be accomplished in your code by converting "again" into one version by using the .lower function.
again = input("Would you like to draw a 3rd card? Y or N? ")
again = again.lower()
Hope this helps!
Answer:
Yes. That's what the internet is all about. Saving resources through interconnected computers.
Answer:
B. NIDS
Explanation:
From the question we are informed about A network manager is interested in a device that watches for threats on a network but does not act on its own, and also does not put a strain on client systems. The BEST device to meet these requirements is NIDS. Network intrusion detection system known as "NIDS" can be regarded as a system that can attempt in detection of hacking activities as well as denial of attack on computer network. It can monitor network traffic and can as well detect malicious activities through identification of suspicious patterns in any incoming packet.
"Solve the problem: on the first day in a garden thrived with p% more flowers than in the previous day. Determine the total number of flowers that will bloom in the k days." What I translated.
We would need to know the other answers before anyone could answer. There was completely no number given.
Answer:
<link rel="stylesheet" href="exam.css">
Explanation:
href is the file name assuming its in the same path
also get an extension called grepper, it helps debug a lot quicker