Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: bitwise rotation/classes
Post: bitwise rotation/classes

The assignment is to: take data from input file, input file has 3 sets of columns, decimal number, L or R for left/right direction, and a rather large number for # of places to shift. What I have don...
msp1981 Homework 1 2,516 Apr-27-2019, 04:45 PM
    Thread: Need help with self
Post: RE: Need help with self

Thank you, got it working
msp1981 Homework 2 2,115 Apr-21-2019, 08:56 PM
    Thread: Need help with self
Post: Need help with self

This is the assignment: The ComplexNumber Class Define a class ComplexNumber, which has two data fields (both numbers), real and imaginary. In addition, the class should support the following methods...
msp1981 Homework 2 2,115 Apr-21-2019, 07:15 PM
    Thread: Need help.
Post: RE: Need help.

[list=1] [*]import math #def calcDistance(x1, x2, y1, y2, z1, z2): # distance = math.sqrt((x1 - x2)**2 + (y1 - y2)**2 + (z1 - z2)**2) # return distance output_file = open('output.txt', 'w...
msp1981 Homework 5 2,845 Apr-06-2019, 02:13 PM
    Thread: Need help.
Post: RE: Need help.

Not looking for someone to write the code. More or less looking for advice about the logic behind something like this, obviously define a math function, open file, readlines()? -> creates a list of...
msp1981 Homework 5 2,845 Apr-06-2019, 02:13 AM
    Thread: Need help.
Post: Need help.

Below, is an assignment I was given, first of all I'm no where near this level in math yet but the math operation line for this should be something like: distance = math.sqrt((x1 - x2)**2 + (y1 - y2)*...
msp1981 Homework 5 2,845 Apr-06-2019, 01:26 AM
    Thread: Powerball assignment, how to get correct output of a dictionary ?
Post: RE: Powerball assignment, how to get correct outpu...

thanks. dunno what to say to that, feel stupid now i think i originally had it at 5 also i've been messing around with this all day
msp1981 Homework 5 3,350 Mar-19-2019, 10:55 PM
    Thread: Powerball assignment, how to get correct output of a dictionary ?
Post: RE: Powerball assignment, how to get correct outpu...

Thank you so much, the reason I have the range set the way I do, is his instructions stated the numbers will be input with a space between them, the last number will be the powerball, so i had the ran...
msp1981 Homework 5 3,350 Mar-19-2019, 10:45 PM
    Thread: Powerball assignment, how to get correct output of a dictionary ?
Post: Powerball assignment, how to get correct output of...

I have an assignment for python to have user input 5 white numbers and 1 red for powerball, so far heres what i've got, the problem i'm having is outputting the winning result, it is printing my entir...
msp1981 Homework 5 3,350 Mar-19-2019, 10:04 PM

User Panel Messages

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