Answer:
These are the supplies in the list:
[‘pencil’, ‘notebook’, ‘backpack’, ‘pen’, ‘calculator’]
Explanation:
The line return (\n) character will be in the output (so there will be a change of line), but it will NOT be visible as it would have been interpreted as a special character.
So the output will be on 2 different lines, with no \n visible.
If the command would have been: print('These are the supplies in the list:\n', supplies), with single quotes (') instead of double quotes (") then then \n would have been printed but not interpreted as a special character. At least in most computer language. Since we don't know of which language the question refers to, we can't be sure at 100%.
Answer:
[‘pencil’, ‘notebook’, ‘backpack’, ‘pen’, ‘calculator’]
Explanation:
The final listing for remember_me.py assumes either that the user has already entered their username or that the program is running for the first time. We should modify it in case the current user is not the person who last used the program.
Before printing a welcome back message in greet_user(), ask the user if this is the correct username. If it’s not, call get_new_username() to get the correct username.
Also, use a check_username() function to prevent any nested if statements from occurring in greet_user()
No prob. Let's go over the Python code,
Here's your complete Python program with the added function `check_username()`:
```
import json
filename = 'username.json'
def get_stored_username():
try:
with open(filename, 'r') as f:
username = json.load(f)
except FileNotFoundError:
return None
else:
return username
def get_new_username():
username = input("What's your username? ")
with open(filename, 'w') as f:
json.dump(username, f)
return username
def check_username():
username = get_stored_username()
if username:
correct = input(f"Are you {username}? (y/n) ")
if correct.lower() == 'y':
return username
return get_new_username()
def greet_user():
username = check_username()
print(f"Welcome back, {username}!")
greet_user()
```
Remember to call `greet_user()` to start the whole shebang. Let me know if anything needs clearing up!
c. Ability to bond
b. Flexibility
d. Highly reactive
b. force times lever arm
c. momentum times radius
d. force times time E. mass times acceleration
If a friend or family member asked to borrow money, I would first assess their need for the loan and consider my own financial situation.
I would ask them about the purpose of the loan and the amount they need. It's important to have a clear understanding of their repayment plan and timeline. Once I have all the necessary information, I can make an informed decision about whether or not I am able to help them. If I decide to lend the money, I would set clear expectations about repayment and possibly put the agreement in writing to avoid any misunderstandings or conflicts in the future. Remember, it's always essential to maintain open communication and ensure both parties are comfortable with the arrangement.
If a friend or family member asked to borrow money, I would first try to assess the situation and understand why they need the money. I would ask questions about their financial situation, how they plan to repay the loan, and what steps they have taken to address their financial needs. If I decide to lend the money, I would make sure to document the terms of the loan, including the repayment schedule, interest rate, and any other conditions. I would also make sure that the loan agreement is signed by both parties to avoid any misunderstandings or disputes in the future. Finally, I would try to maintain a professional relationship with the borrower and avoid any conflicts or tensions that could arise from the loan.
Learn more about financial: brainly.com/question/989344
#SPJ11
c. CAD
b. Drafting
d. Landscape software
CAD provides the architect opportunity to electronically plan and place elements of a building. Correct answer: C CAD stands for Computer-Aided Design. CAD is a computer technology used by architects, engineers, drafters, artists, and others to designs a product and documents the design's process.