nichom

Make a program that can open up text files and count the number of characters that are in it.
Using that as a starting point have it count the number of words.
Then make it create an average for letters per word.

nichom

def multiply(m, n):
    if n == 0 and m>0:
        while m>0:
            print(0)
            m -= 1
    elif m>0 and n != 0:
        while m>0:
            print(m * n)
            m -= 1
    elif m<=0:
        print('M must be greater than 0')

Does this work for what you are asking?

nichom

Was this problem solved? If so, could you please mark as solved?

nichom

Currently I am working on a project (on and off for two months) called Chrono Leap. The main idea is that you will be able to go from the past to the present to the future whenever you want. You will face creatures and all that jazz as you go through.
You have probably heard thousands of these, but I would really like it if I could get some feed back on some really disorganized code. I am not asking to organize it, but merely for others to try it out, tell me what glitches they come across and if possible, their own fix they would use.
The game can be downloaded here since it is multiple files: https://drive.google.com/folderview?id=0B1fAp0oMBtseVzlxR2syTGI4R0k&usp=sharing
It is the development build, which as you probably know, has more bugs but also more features and edits.
The game has to be launched through the init.py file and is run through the IDE or teminal. It is coded in Python 2.7

nichom

I am pretty sure that to import Tkinter in python 3.X you have to type:

import tkinter

instead of

import Tkinter

Seeing the code would help us see the problem.