Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for hotblink

Hi, I'm studying for a final exam and I just wanted to ask if you could be so kind to explain how you get these answers from these questions. I'm really confused on them. Thanks! 1) What is the output of the following program? def f(x, y): if y == …

Member Avatar for Xantipius
0
137
Member Avatar for hotblink

Hi there, I just wanted to ask how I would go about writing a single function to count the frequency of numbers 0-10 including .5(such as 1.5,2.5) This is what I have done file = open ('grade.txt', 'r') s=file.readline() grade=[] while s[0:3]!="EOF": s=s.replace(' ','') lst=s.split(',') if lst[0][0]!='I': grade.append(float(lst[5])) print(lst) s=file.readline() …

Member Avatar for hughesadam_87
0
384
Member Avatar for hotblink

Hi, I seem to be having some trouble converting the output of this(which is a list) to a string of integers. What I want ultimately is for the output to just be integers. After that I also need to determine how many times an integer appears. I know I need …

Member Avatar for snippsat
0
429
Member Avatar for hotblink

Hi, I need some help to make a program where python reads each line(a string) of a .txt file. -sample txt file-(EOF stands for 'End of File) I need it to be able to read up to 300 students. ID , Last , First, Lecture, Tutorial, A1, A2, A3, A4, …

Member Avatar for snippsat
0
418
Member Avatar for hotblink

Hi, newbie to python here, I just wanted to ask how I can compute the after tax price and displaying only up to 2 decimal places. Like 4.1895030939393 will display only 4.18 without it rounding. Here's what I've done so far Original_Price = float(input('Please input the before-tax price : ')) …

Member Avatar for TrustyTony
0
199
Member Avatar for hotblink

Hi there, newbie to python and in need of help for an assignment. I have to write a Python program that prompts the user to input the before-tax price of an item and the payment from the customer. It should then perform two tasks. First, compute and display the after-tax …

Member Avatar for Xantipius
0
357