No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm making this code for class but it will only display the number of days as 28 29 or 30. Im new to Java and would really appreciate help. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package days; … |
|
I am trying to make pygame draw a shape from a list of shapes imported with fileIO but i get a pygame import error please help [CODE]import random import pygame w = 640 h = 480 x = open("shapes.txt") z = x.readlines()[n] n = random.randrange(6) screen = pygame.display.set_mode((w, h)) pygame.draw.z(screen, … |
|
I am building a code that needs to find the average of a set of scores in a list that can have amounts added and removed. I know how to find the average of a list of scores of a fixed number can someone help me on how to find … |
|
[CODE]#Program to count number of specific vowels msg = input("Enter a message:") msg_lower = msg.lower() VOWELS = list(aeiou) msg_list = list(msg_lower) x = () for letter in VOWELS: x[letter] = msg_list.count(letter) for letter in x: print(a, x(letter)) print(e, x(letter)) print(i, x(letter)) print(o, x(letter)) print(u, x(letter)) [/CODE] I get an error … |
|
We are creating a loop in my CSET class and I am stuck. This is the original script I created: [code=python] #This is a game character health simulator health = int(input("What is your characters health?")) if health <0: print("Dead") elif health >=0 and health <100: print("Weak") elif health >100 and … |