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
~304 People Reached
About Me

Student

Favorite Forums
Favorite Tags
Member Avatar for smerny

Hello, I'm trying to learn how to create a very simple class just to get the basics of OOP in python. I figure just to learn I'll start with a class where I can create an object and use a method to update a string associated with that object and …

Member Avatar for JasonHippy
0
144
Member Avatar for smerny

[CODE] for line in infile: if(line[len(line)-1:] = "\n"): line = line[:len(line)-1] output = "Searching for: " + line search.append([line,output])[/CODE] Giving me the error: [QUOTE] if(line[len(line)-1:] = "\n"): ^ SyntaxError: invalid syntax[/QUOTE] I'm basically trying to take each line of the file and I want to exclude the newline character at …

Member Avatar for vegaseat
0
160