Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Quick Help - Timers - Need Small Solution for Working Code
Post: RE: Quick Help - Timers - Need Small Solution for ...

(Nov-16-2020, 06:36 PM)jefsummers Wrote: input returns a string. Your if statement compares that string to a number. Put quotes around the number or use int() to convert your input string to an inte...
EwH006 General Coding Help 5 3,976 Nov-17-2020, 04:09 AM
    Thread: Quick Help - Timers - Need Small Solution for Working Code
Post: RE: Quick Help - Timers - Need Small Solution for ...

(Jan-19-2019, 11:47 PM)SheeppOSU Wrote: Here you go. This should do the trick import random import time def random_line(pname): lines = open(pname).read().splitlines() return random.choice...
EwH006 General Coding Help 5 3,976 Nov-16-2020, 06:14 PM
    Thread: Quick Help - Timers - Need Small Solution for Working Code
Post: Quick Help - Timers - Need Small Solution for Work...

Good Evening, I am looking to get some help as programming is not my game, I am into networking. To explain intentions: This code is being used locally at home on a device that is not connected to ...
EwH006 General Coding Help 5 3,976 Jan-19-2019, 10:17 PM
    Thread: Quick Lists Question (Count Occurences)
Post: RE: Quick Lists Question (Count Occurences)

I still am not getting where I need to be. The console is supposed to spit out how many times each integer I input occurs. I've altered my code a bit since last post. I'm working with what I had befor...
EwH006 Homework 12 10,693 Nov-16-2016, 01:57 AM
    Thread: Quick Lists Question (Count Occurences)
Post: RE: Quick Lists Question (Count Occurences)

That isn't in python 3, or at least my interpret is saying it isn't. I'm talking about the <>. I messed with that code a little bit though. That's not what I'm looking to do. I'm looking to inp...
EwH006 Homework 12 10,693 Nov-16-2016, 12:25 AM
    Thread: Quick Lists Question (Count Occurences)
Post: RE: Quick Lists Question (Count Occurences)

That isn't in python 3, or at least my interpret is saying it isn't. I'm talking about the <>. I messed with that code a little bit though. That's not what I'm looking to do. I'm looking to inp...
EwH006 General Coding Help 9 7,925 Nov-16-2016, 12:25 AM
    Thread: Quick Lists Question (Count Occurences)
Post: Quick Lists Question (Count Occurences)

Good Evening, I'm stuck in a headache and am looking to get some solutions. I've been given a problem that wants me to input 9 integers, and list the occurrences of those 9 integers. I've done it one...
EwH006 Homework 12 10,693 Nov-16-2016, 12:06 AM
    Thread: Quick Lists Question (Count Occurences)
Post: Quick Lists Question (Count Occurences)

Good Evening, I'm stuck in a headache and am looking to get some solutions. I've been given a problem that wants me to input 9 integers, and list the occurrences of those 9 integers. I've done it one...
EwH006 General Coding Help 9 7,925 Nov-16-2016, 12:06 AM
    Thread: Need suggested alterations (6 function calculator)
Post: RE: Need suggested alterations (6 function calcula...

Thanks for those that gave their input. I was able to get the homework to grade at 100%. Larz60+: your while statement: 'while integer1 <= 13 or integer2 <= 13:' didn't work, I had to make the '...
EwH006 Homework 7 5,878 Nov-08-2016, 08:33 PM
    Thread: Need suggested alterations (6 function calculator)
Post: RE: Need suggested alterations (6 function calcula...

(Nov-08-2016, 04:12 PM)nilamo Wrote: A while loop doesn't make sense, because you only ever want the block to run once, AND you're not changing any of the conditions, so it'd be an infinite loop (if...
EwH006 Homework 7 5,878 Nov-08-2016, 05:15 PM
    Thread: Need suggested alterations (6 function calculator)
Post: Need suggested alterations (6 function calculator)

Good Morning, I've written a program for a project in my intro to python class called: 6 Function Calculator.  The functions are setup correctly. The part that isn't setup correctly is the 'while exp...
EwH006 Homework 7 5,878 Nov-08-2016, 02:14 PM
    Thread: Sum Series w/ Fractions
Post: RE: Sum Series w/ Fractions

Thanks for all the help. '''Programmer: Eric Hanlon Class: CIS120 Section: 402 Program Name: Exercise05_27 Description: This program will run a sum series of fractions ''' sum = 0 n = 1 for n in ra...
EwH006 Homework 12 13,298 Oct-11-2016, 04:37 PM
    Thread: Sum Series w/ Fractions
Post: RE: Sum Series w/ Fractions

(Oct-10-2016, 06:27 PM)Mekire Wrote: (Oct-10-2016, 06:23 PM)EwH006 Wrote: It was a typo to begin with, pfft. Mekire I wasn't referring to any typo.  Your corrected, working code, that sums the ran...
EwH006 Homework 12 13,298 Oct-10-2016, 10:47 PM
    Thread: Sum Series w/ Fractions
Post: RE: Sum Series w/ Fractions

(Oct-10-2016, 06:07 PM)EwH006 Wrote: (Oct-10-2016, 05:23 PM)ichabod801 Wrote: (Oct-10-2016, 05:14 PM)EwH006 Wrote: I'm trying to figure out how I replace the code I originally posted which adds ...
EwH006 Homework 12 13,298 Oct-10-2016, 06:23 PM
    Thread: Sum Series w/ Fractions
Post: RE: Sum Series w/ Fractions

(Oct-10-2016, 05:23 PM)ichabod801 Wrote: (Oct-10-2016, 05:14 PM)EwH006 Wrote: I'm trying to figure out how I replace the code I originally posted which adds "1  +  2  +  3  +  4  +  5  +  6  +  7 ...
EwH006 Homework 12 13,298 Oct-10-2016, 06:07 PM
    Thread: Sum Series w/ Fractions
Post: RE: Sum Series w/ Fractions

I understand what you mean by: "I'm not summing anything" , I believe. I'm trying to figure out how I replace the code I originally posted which adds "1  +  2  +  3  +  4  +  5  +  6  +  7  +  8  +  9...
EwH006 Homework 12 13,298 Oct-10-2016, 05:14 PM
    Thread: Sum Series w/ Fractions
Post: Sum Series w/ Fractions

Good Morning, I am new to programming and these forums. I plan on becoming a little more active here and on IRC while working toward my degree. This morning I'm trying to work toward an assignment I...
EwH006 Homework 12 13,298 Oct-10-2016, 02:42 PM

User Panel Messages

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