Answer:
import csv
fileIn = open("data/bags.txt","r")
countPurse = 0
textFile= csv.reader(fileIn)
for bag in textFile:
if bag[
1
] == 'purse':
countPurse = countPurse + int(bag[6])
fileIn.close()
print("Number of purses:",countPurse)
Explanation:
I hope this helps!
Answer:
CLS
INPUT "Enter a number: ",N
IF N > 0 THEN
PRINT "The number is Positive."
ELSEIF N < 0 THEN
PRINT "The number is Negative."
ELSE
PRINT "The number is Zero."
END IF
END
Answer:
Network based coverages are LAN, WAN, MAN and WLAN
Answer:
Header is at the top of the page and used for epicas and titles, while footers at the bottom are used for footnotes or page number
Answer:
Let's say you need to remember some information, the way moviegoers tried to remember the name of the movie. Instead of storing it in your human memory, you can store information in your computer's memory using Python. This is called assigning a string value to a variable.
To assign a string value to a variable in Python, follow this example. Select each part of the code to see how it works with the movie title example.
movieTitle = "Live. Die. Repeat."
This line of Python code is an example of an assignment statement. In an assignment statement, you tell Python, "This variable is assigned this string value."
Explanation: