Answer:
right clicking should be your answer
Answer:
#section 1
def maxTemp(filename):
import pathlib
f = pathlib.Path(filename)
f.exists()
if f.exists():
f = open(filename, "r")
#section 2
next(f)
res = [int(sub.split(',')[1]) for sub in f]
maxdata = (res[0])
for i in range(len(res)-1):
if maxdata < res[i]:
maxdata = res[i]
index = res.index(maxdata)
f.close()
#section 3
li = []
a = open(filename, "r")
for line in a:
line = line.strip()
li.append(line)
a.close()
return (li[index+1])
else:
return -1
print(maxTemp("new.csv"))
Explanation:
#section 1:
The function maxTemp is defined. We import pathlib in other to check if the file exists, if it does we carry on with opening the file and if it doesn't the program returns -1.
#section 2:
We start splitting the sub-lists from the second line i.e <em>next(f)</em>. For each line we take the second index element and convert it to an integer.
<em>res = [int(sub.split(',')[1]) for sub in f]
</em>
The maximum number is gotten by using the if statement to compare all elements in the list. The index of the maximum item in the list is collected.
the file is then closed.
#section 3 :
The file is re-opened and all the lines are striped and passed into a new list and the index recovered from section 2, is used to get the day with the highest temperature and the line is returned.
Answer:
d so if he comes back any time soon
Explanation:
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.
A service company would hire an Information Support and Service employee.
hope it helps you!