- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
9 Posted Topics
[QUOTE][CODE]def main(): print len([x for x in raw_input("enter a phrase:" ).split()]) main()[/CODE][/QUOTE] Just FYI: I receive a SyntaxError: invalid syntax when I tested this code in Python 3.1.3.
My friends website got hacked by the Sole Sad & Invisible malware. I'm not sure how or where to go to find how to remove / clean all the files and was wondering if any might be able to point me in the right direction.
I continue to get a script type font in various areas when viewing websites through Google Chrome as well as emails through Thunderbird. It is only occurring on one machine and only through those applications so my guess is it is the machine's settings that are the problem. However, I've …
I think my site has been hacked! I found these lines of code on all my php files and I didn't put them there. Problem is I don't know enough php to understand what this batch of code does. Could anyone please help? How bad is it? Here's the code: …
I'm trying to create a vertical histogram using only built-in modules. I understand the current histogram function isn't truly a histogram (and the code is probably very ugly), but I'm totally lost on how to create a vertical histogram. [CODE]import itertools def histogram(s): print("Histogram:") print("%s %7s %12s" % ( "No.", …
You need to set a variable for your while loop and change the bottom if statement. You then need to count to the variable each iteration. Also, you should take the name input and first print statement out of the loop so not to have it repeat each time. [CODE]print …
I'm trying to count the length of each word in a string of text and then count the frequency of times that number of characters shows up throughout the entire text. I can't seem to figure out where to go from what I have here. Any help is greatly appreciated. …
I'm having difficulty figuring out how to append two user inputs into a list as a tuple. I would also like to call the list and enumerate the list (e.g., 0. dog_name:dog_breed). I'm not sure how to call display or if it is even written properly. Here's what I have …
Hi everyone! New here and to Python. I'm having trouble with my break statement executing and cannot figure out why. I'm learning to write to files and want the loop to break if the user hits enter. It's not working for some reason. I've even tried to get fancy (in …
The End.
joeywheels