Hello
How would I get the following program to draw squares instead of circles?
from graphics import*
def main():
win=GraphWin()
shape = Circle(Point(50,50), 20)
shape.setOutline("red")
shape.setFill("blue")
shape.draw(win)
for i in range(10):
p = win.getMouse()
Hello
I downloaded the graphics.py file and have it saved on my computer but everytime I run the following program I seem to keep getting an error.
from graphics import*
def main():
win=GraphWin()
shape = Circle(Point(50,50), 20)
shape.setOutline("red")
shape.setFill("red")
s
Hello
How could I get the following program to output UDP from the user entering user datagram protcol or IP if internet protocla was entered?
currently it only prints out on letter
import string
def main():
phrase = (raw_input("Please enter a phrase:"))
acr1 = string.split(phrase)
How could I change the program to accept something like: John Bob Zelle Python or Kip Rada?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hello
with the following program I would like it to be able to take a person's name and then assign values to each letter and come up with a sum of all the letters in the name. for example if I entered bob. i would like the program to be able to print bob and then print the total of bob which wou
Hello
How would I get the following program to accept inputs of exam scores from 0-100 with A being 100-90, B being 89-80, C being 79-70, D being 69-60, and F being everything less than 60?
import string
def main():
scores = ["F", "D", "C", "B", "A"]
g = input("Enter a score number (0-10
Hello
How would I get the following program to accept inputs of exam scores from 0-100 with A being 100-90, B being 89-80, C being 79-70, D being 69-60, and F being everything less than 60?
import string
def main():
scores = ["F", "D", "C", "B", "A"]
g = input("Enter a score number (0-
Hello
Does anyone have any idea on how i could simplify the following program by using strings?
# dateconvert2.py
# Converts day month and year numbers into two date formats
import string
def main():
# get the day month and year
day, month, year = input("Please enter the day, month a
I would like to insert string.join(msgList,"") into the following program where do I insert it?
# numbers2text.py
# A program to convert a sequence of ASCII numbers into
# a string of text.
import string # include string library for the split function.
def main():
print "This pr
I would like to construct a table for my program but it does not seem to be coming out evenly. Could someone please let me know what to do so that everything will work out correctly?
def main():
print "This program shows a table of Celsius temperatures and there Fahrenheit equivalents every 10
I used python several months ago to write a simple program now i went back to use it to rewrite the same program and when I try to run it it says that my firewalls may be to secure. everytime the program runs in python it restarts and just has empty lines. how do I change my firewalls to be able to
I used python several months ago to write a simple program now i went back to use it to rewrite the same program and when I try to run it it says that my firewalls may be to secure. everytime the program runs in python it restarts and just has empty lines. how do I change my firewalls to be able
I am new to programming and this is the first language that I will be learning. I am trying to get the shell to print "hello world". I followed all of the steps to save it and then run the file to get it to print in the shell. the shell gives me an error and also says that personal firewall softwar
13 matches
Mail list logo