Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: What am I doing wrong?
Post: RE: What am I doing wrong?

Quote:[*]readFile(), but you don't do anything with the return value. [*]checkRawData(), which calls readFile() again, and you don't do anything with the returned filtered_data. [*]writeFile(), which ...
forumer444 Homework 14 7,387 Sep-20-2017, 12:47 AM
    Thread: What am I doing wrong?
Post: RE: What am I doing wrong?

This is my updated code and it only prints out the last line in the input file which is "6464". Any ideas what I need to change? I can't use a split() function in my assignment. # function 4 def leap...
forumer444 Homework 14 7,387 Sep-17-2017, 11:01 PM
    Thread: What am I doing wrong?
Post: RE: What am I doing wrong?

This is my update if anyone can help me finish it. # calculation function def leapYear(year): """ Calculates whether a year is or isn't a leap year. """ year = int(year) return year % 4 =...
forumer444 Homework 14 7,387 Sep-16-2017, 10:09 PM
    Thread: What am I doing wrong?
Post: RE: What am I doing wrong?

How do you filter out the letters in the "all_years.txt" file? I assume it goes in my appendFile() function. Am I getting anywhere? :( I took out the appendFile() function. # calculate function def...
forumer444 Homework 14 7,387 Sep-16-2017, 03:24 AM
    Thread: What am I doing wrong?
Post: RE: What am I doing wrong?

Quote:The first thing your are doing wrong is not telling us what error you are getting, or how the program is not working. Yeah, I should have mentioned that. I have to at least 2 functions, have to...
forumer444 Homework 14 7,387 Sep-15-2017, 09:32 PM
    Thread: What am I doing wrong?
Post: What am I doing wrong?

This is driving me crazy. *** Program Description *** Write a program to read in a file of years, one per line, and output to a separate file "only those years that are in fact leap years" (according...
forumer444 Homework 14 7,387 Sep-15-2017, 08:39 PM
    Thread: I need serious help.
Post: RE: I need serious help.

(Sep-13-2017, 08:20 PM)buran Wrote: Well, as an intermediate java programmer what do you understand by 'user input'? seriously... it's not possible to say it more clear - Quote:Ask the user to input...
forumer444 Homework 3 4,135 Sep-14-2017, 12:57 AM
    Thread: I need serious help.
Post: I need serious help.

So I'm more of an intermediate programmer in Java, but I've had to move to a new area in the middle of being in school and am now learning Python in my current class. Things have been going fine, but ...
forumer444 Homework 3 4,135 Sep-13-2017, 08:10 PM
    Thread: I have a logic error.
Post: RE: I have a logic error.

(Sep-06-2017, 10:00 PM)ichabod801 Wrote: You are always comparing the same character: user_string[1]. You probably meant that to be user_string[i], which is one of the reasons non-descriptive variab...
forumer444 Homework 3 3,218 Sep-06-2017, 10:27 PM
    Thread: I have a logic error.
Post: I have a logic error.

So for my homework assignment, I have to write a program that basically counts the characters and types of characters in a string that's entered by the user. Here's the official description: - Write...
forumer444 Homework 3 3,218 Sep-06-2017, 09:48 PM
    Thread: Perfect Square program
Post: RE: Perfect Square program

(Sep-01-2017, 06:28 AM)rajeev1729 Wrote: import math user_number = input("Enter a number to see if it's a perfect square: ") var = False while not var: root = math.sqrt(int(user_number)) var...
forumer444 Homework 4 8,950 Sep-01-2017, 09:32 PM
    Thread: Perfect Square program
Post: RE: Perfect Square program

(Sep-01-2017, 01:59 AM)forumer444 Wrote: Hi, all! I'm new to the forums, and have a small problem on this short program homework assignment. Hopefully somebody can help me out. I'm working on a pro...
forumer444 Homework 4 8,950 Sep-01-2017, 04:45 AM
    Thread: Perfect Square program
Post: Perfect Square program

Hi, all! I'm new to the forums, and have a small problem on this short program homework assignment. Hopefully somebody can help me out. I'm working on a program to have the user enter a number to see...
forumer444 Homework 4 8,950 Sep-01-2017, 01:59 AM

User Panel Messages

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