Answer:
Let's say you need to remember some information, the way moviegoers tried to remember the name of the movie. Instead of storing it in your human memory, you can store information in your computer's memory using Python. This is called assigning a string value to a variable.
To assign a string value to a variable in Python, follow this example. Select each part of the code to see how it works with the movie title example.
movieTitle = "Live. Die. Repeat."
This line of Python code is an example of an assignment statement. In an assignment statement, you tell Python, "This variable is assigned this string value."
Explanation:
A. if they have been previously competetive
Answer:
Here you go, Change it however you'd like :)
Explanation:
import random as r
def play_round(p1, p2):
cards = [1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"]
play1 = r.choice(cards)
play2 = r.choice(cards)
while play1 == play2:
play1 = r.choice(cards)
play2 = r.choice(cards)
if cards.index(play1) > cards.index(play2):
return f"{p1}'s Card: {play1}\n{p2}'s Card: {play2}\nThe Winner is {p1}"
else:
return f"{p1}'s Card: {play1}\n{p2}'s Card: {play2}\nThe Winner is {p2}"
print(play_round("Bob","Joe"))
Answer:
The exec command by interpreter to start new process
Explanation:
On Unix systems, a call to the fork system must be made followed by a call to the e x e c system to begin a new process. The fork call clones the process that is currently running, while the executive call overlays a new process based on a different executable over the calling process.
It is seperate from Kernal because
It Read user commands or a script and execute them, generally turning them into one or more system calls. Is usual It is not part of the kernel since the command interpreter is subject to change.
Answer:
I am attaching a doc file for the answer.
Explanation:
The attached file has the answer with explanation.