Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Doctesting a function which prints a students name along with the maximum mark scored
Post: RE: Doctesting a function which prints a students ...

Do you know how I could refactor this code to do that? (Jan-26-2022, 11:58 AM)sean1 Wrote: How would I go about doctesting this? Output is following for e.g Maths Sam - 98 def Maximum(): while...
sean1 General Coding Help 5 2,217 Jan-30-2022, 09:14 AM
    Thread: Doctesting a function which prints a students name along with the maximum mark scored
Post: Doctesting a function which prints a students name...

How would I go about doctesting this? Output is following for e.g Maths Sam - 98 def Maximum(): while True: print("Maximum marks: Please select a subject, (1) Maths (2) Physics (3) Biolog...
sean1 General Coding Help 5 2,217 Jan-26-2022, 11:58 AM
    Thread: Getting the maximum value:key pair from a dictionary
Post: Getting the maximum value:key pair from a dictiona...

I have a dictionary with 40 student names and their respective math scores {'Ines': 78, 'Mary': 42, 'Molly': 72, 'Maria': 83,} . How do I get Python to print the student with the highest score. i.e Zi...
sean1 General Coding Help 2 1,403 Jan-17-2022, 08:52 AM
    Thread: how do I return Max Test result + corresponding student name from an excel dataset?
Post: RE: how do I return Max Test result + correspondin...

(Jan-16-2022, 04:52 PM)jefsummers Wrote: Two things. First, as always in this site, show us your code, what you have done so far! Second, we need to know the format of the data. You say a list, how ...
sean1 General Coding Help 3 1,211 Jan-16-2022, 04:54 PM
    Thread: how do I return Max Test result + corresponding student name from an excel dataset?
Post: how do I return Max Test result + corresponding st...

I have a dataset with column headers Student name, ID, Nationality and several test scores (one col per subject.) I have converted the columns to list and am able to get the max score but not sure as ...
sean1 General Coding Help 3 1,211 Jan-16-2022, 02:54 PM
    Thread: Python Program "Topic" 150 lines of code.
Post: Python Program "Topic" 150 lines of code.

Does anyone have any ideas for what I could write a program for? using loops, lists etc. Thanks in advance!
sean1 Homework 3 2,431 Dec-24-2021, 08:16 AM
    Thread: Manually raising two error types with a function that computes sqfeet to sqmeters
Post: Raising Errors

How am I able to raise the TypeError when entering a non numerical input? Because of the float(input .... in line 8 a value error is automatically raised. Thanks! # Area Unit Converter from configur...
sean1 Homework 7 2,070 Nov-12-2021, 01:30 AM
    Thread: Manually raising two error types with a function that computes sqfeet to sqmeters
Post: RE: Manually raising two error types with a functi...

new code- Line 1 starts with the # # Area Unit Converter from configuration import ERROR_NEGATIVE, ERROR_NAN # LIBRARY: function declaration part # put definitions of functions here def sqfeet_to...
sean1 Homework 7 2,070 Nov-12-2021, 12:18 AM
    Thread: Manually raising two error types with a function that computes sqfeet to sqmeters
Post: RE: Manually raising two error types with a functi...

indentations are correct in my PyCharm file- sorry about that
sean1 Homework 7 2,070 Nov-11-2021, 10:35 PM
    Thread: Manually raising two error types with a function that computes sqfeet to sqmeters
Post: Manually raising two error types with a function t...

I keep getting TypeError: unsupported operand type(s) for /: 'str' and 'float'. How do I manage to raise the errors successfully as well as removing this reoccurring TypeError? Please help!!! Thank y...
sean1 Homework 7 2,070 Nov-11-2021, 10:34 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020