[Tutor] Basics

2010-09-28 Thread Cameron Macleod
Hi, I'm relatively new to this mailing list (and python!) and I would greatly appreciate some exercises to try or something to get me familiar with the system. Thanks, Cameron Macleod ___ Tutor maillist - Tutor@python.org To unsubscribe or c

[Tutor] Infinite Loop

2011-09-24 Thread Cameron Macleod
Hi, I've been trying to code a simple guess my number game as a starter programming project but I've generated an infinite loop accidentally. Since I'm new to programming in general, I can't really figure out what's causing it. Thanks === import random print("\tWelcome to 'G

[Tutor] Input

2011-09-30 Thread Cameron Macleod
Hi, When you type Input("\n\nPress The Enter Key To Exit") it forces you to press the enter key to close the program. Why is it the enter key instead of e.g. the 'esc' key? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription o

[Tutor] Time subtractrion

2011-11-12 Thread Cameron Macleod
Hi, I've been trying to code a timer that tells you how long you've been on the net and I can't figure out how to produce a figure in hours, minutes and seconds that is constantly being updated. If anyone could point out a module with functions like this or built in functions, I'd be very grateful

[Tutor] __init__ doesn't seem to be running

2013-03-15 Thread Cameron Macleod
Hello everyone, I'm using Python 3.3 and am trying to write a simple to-do list program. I have a class which runs pretty much everything called todo and the __init__ method doesn't seem to be running. class todo(): def __init__(self): tasks = [] def writeTask(todoList): n

Re: [Tutor] __init__ doesn't seem to be running

2013-03-15 Thread Cameron Macleod
+ "\",\"" + desc + "\",\"" + str(imp) + "\"") print("Task written!") main = todo() main.writeTask(main.todoList) It's recognising todoList as global now which is better than not being acknowledged at all, but why would it