-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes.py
62 lines (46 loc) · 1.71 KB
/
Notes.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#greeting = "Hello, World!"
#print(len(greeting))
#List
#grociery_list = ['apple', 'banana', 'carrot', 'doughnut', 'eggplant', 'french fries', 'grapes', 'honey', 'ice cream', 'jelly']
#print(grociery_list)
#print(grociery_list[0])
#grociery_list.append('kiwi')
#print(grociery_list)
#grociery_list.remove('banana')
#print(grociery_list)
#grociery_list.pop(5)
#print(grociery_list)
#Key : Value
#students = {
# 'Bobbi Bobson': '134584',
# 'Sam Samuelson': '234664',
# 'Logan Huffman': '234234',
#}
#print(students['Bobbi Bobson'])
#students['Pete Peterson'] = 222222
#print(students)
#new_words = {
# 'amirite': 'interjection used to as a combination of the three words '
# '"Am I right?"',
# 'sharenting': 'The action or practice of sharing news, images, or videos '
# 'of one\'s children on social media websites.'
#}
#print(new_words['sharenting'])
#new_words['machinga'] = 'A street vendor; a hawker'
#del new_words['amirite']
#print(new_words.keys())
#print('A long list of string variables: ', name1, ', ', name2, ', ',
#name3, ', ', name4, ', ', name5, ', ', name6, '.', sep='')
#print('A long list of string variables: ' + name1 + ', ' + name2 +
#', ' + name3 + ', ' + name4 + ', ' + name5 + ', ' + name6 + '.')
#print(f'A long list of string variables: {name1}, {name2}, {name3}, '
# f'{name4},{name5}, {name6}.')
#fruits_Dict = { "banana": 1.99, "apple": 0.99, "orange": 1.49, "grapes": 2.99, "kiwi": 0.49, "watermelon": 4.99, "strawberry": 3.99, "blueberry": 2.99, "mango": 1.99, "pineapple": 2.99 }
#for fruit in fruits_Dict:
#print(fruit)
#print(fruits_Dict)
#counter = 0
#while counter < 10:
# counter += 1
# print(counter)
#rint("Done!")