- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 1
i am almost done with the hangman game but i just need to migrate it to graphics i know i need to use entrybox but i still dont know. [CODE]rom graphics import* from random import * MAX_BAD_GUESSES = 7 def readfile(): infile = open("wordlist.txt","r") contents = infile.read() lines = contents.split("\n") … |
|
Re:
need some help on the coding can some plz help the question is: A year is a leap year if it is divisible by 4, unless the year is a Century, in which case it is only a leap year if it is divisible by 400. Write a function which … |
|
The question is ask the user for 20 numbers one at a time, saves the numbers in list, and then printsa 2 column table with each number in the list entered in the first column and its square root in the second column. Each column should be 6 characters wide … |
|
Hi. i am trying to create deck of cards for uno game. i need to create draw and undraw functions for each card class. i dont know how to do this.. Thanks ! |
|
I am trying to code the hangman game.. i have the game running but i need to attach it to graphics.py. please help it needs to be done by midnight. here is my code so far the last parts just the ideas to atach it to graphics. [CODE]from graphics import* … |
|
i need to write a function changeName(name) that takes a string value as an argument. where name is in the form last,first,middle. the function should return a string that has the name in form fits,middle,last. [CODE][/CODE] name1 = input("Enter your name") def changeName(name): fields = name.split(",") return fields fields = … |
|
Jack loves to do jumping jacks. Create a simulation of Jack consisting of a stick figure and three buttons: start, stop, and quit. If the user clicks the start button, Jack begins jumping; if the user clicks the stop button, Jack stops jumping; if the user clicks the quit button, … |
|
the question is a year is a leap if it is divisible by 4, unless it is a century year that is not devisible by 400. write a program that calculates whether a year is a leap or not [CODE][/CODE] def main(): year = eval(input("Enter a year")) if year/4 and … |
|
HOW CAN I WRITE A PROGRAM THAT CALCULATES THE FIRST N NATURAL NUMBERS THAT USER ENTERS. I SHOULD USE FUNCTIONS. n = eval(input("Enter the value of n: ")) def sumN(n): for i in range(n): sum = n+i return sum sum = sumN(n) THIS IS WHAT I DID SO FAR. THANKSSS |
|
i am writing a program that reads the file i create. The file has grades and weights of grades anddd 3 person but i need to create a program that will read the information from the file, calculate and print the total average of each student given by the formula … |
|
i am making winter greeting card using grahics.py and i need to create a code to make it snow import random random.randint(0,199) p = Point(random.randint(0,199),random.randint(0,199)) p.setFill('white') p.draw(win) so far that what i have but noting really happened please help ! thanks ! |
|
Re:
hi, right now i'm working on a program that prints parabolic shapes on the screen. And i want to be able to type a formule, and than i need python to understand that formule :? I have heard from many people that this is extremely hard But is there a … |
|
Write a program that prompts the user for their monthly deposits and withdrawals from their checking account. After each transaction, output the balance and the amount withdrawn or deposited. At the end of the program, output a formatted table of the transactions. Use the Python format function to only display … |