Repost the picture there’s nothing here
Instead of having to write multiple pieces of code for different outcomes, you can use an elseif statement and make your code easier to read and easier to understand.
Answer:
def feet_to_inches( feet ):
inches = feet * 12
print(inches, "inches")
feet_to_inches(10)
Explanation:
The code is written in python. The unit for conversion base on your question is that 1 ft = 12 inches. Therefore,
def feet_to_inches( feet ):
This code we define a function and pass the argument as feet which is the length in ft that is required when we call the function.
inches = feet * 12
Here the length in ft is been converted to inches by multiplying by 12.
print(inches, "inches")
Here we print the value in inches .
feet_to_inches(10)
Here we call the function and pass the argument in feet to be converted
Answer:
Check your DNS settings
Explanation:
Different errors may occur when setting up your computer to connect to the internet, one of which is described in the question above.
The DNS (Domain Name System) is responsible for redirecting domain names to their physical IP address. Instead of remembering every IP address of sites you visit frequently, domain names are used for easy remembrance, the DNS makes the matching of domain names to IP addresses possible.
To change your DNS setting follow these steps:
- Click settings from your start menu
- Click on Network and Internet
- Look to the bottom of the main page and click on "Network and Sharing Center"
- On the left tab, click "Change adapter settings"
- Right Click on the current network you are using and select properties
- Left-click on the "Internet Protocol Version 4 (TCP/IPv4) and click on properties.
- Check to see if "Obtain DNS server address automatically" is selected, if it is selected,
- Click on the radio button under it "Use the following DNS server address"
- Enter the DNS address you want to use
- Click Ok and close the window.
The problem should be resolved.