-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPython_practice.py
46 lines (39 loc) · 1.61 KB
/
Python_practice.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#print("Hello World!")
#print(1.5+2*3)
#counties=["Arapahoe","Denvor","Jefferson"]
#print (counties)
#print(counties[0])
#print(len(counties))
#print(counties[0:2])
#counties.append("El Paso")
#print(counties)
#counties_tuple = ("Arapahoe","Denvor","Jefferson")
#print(len(counties_tuple))
#counties_dict={}
#counties_dict["Arapahoe"] = 422829
#counties_dict["Denver"]= 463353
#counties_dict["Jefferson"]=432438
#voting_data=[]
#voting_data.append({"county":"Arapahoe","registered_voters":422829})
#voting_data.append({"county":"Devner","registered_voters":463343})
#voting_data.append({"county":"Jefferson","registered_voters":431438})
#counties_dict = {"Arapahoe": 369237, "Denver":413229, "Jefferson": 390222}
#for county, voters in counties_dict.items():
#print(county + " county has " + str(voters) + " registered voters.")
#for county, voters in counties_dict.items():
# print(f"{county} county has {voters} registered voters.")
# candidate_votes = int(input("How many votes did the candidate get in the election? "))
# total_votes = int(input("What is the total number of votes in the election? "))
# message_to_candidate = (
#f"You received {candidate_votes:,} number of votes. "
# f"The total number of votes in the election was {total_votes:,}. "
#f"You received {candidate_votes / total_votes * 100:.2f}% of the total votes.")
#print(message_to_candidate)
# Import the datetime class from the datetime module.
#import datetime as dt
# Use the now() attribute on the datetime class to get the present time.
#now = dt.datetime.now()
# Print the present time.
#print("The time right now is ", now)
import csv
dir(csv)