Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Var Not defined
Post: RE: Var Not defined

Hello RainbowWolfy, You can either use: Attack = raw_input("What Attack Do You Use? [1,2,3]")Or print("What Attack Do You Use? [1,2,3]") Attack = input()
OmarBrikaa General Coding Help 2 3,452 Sep-14-2017, 08:17 PM
    Thread: Anti Vowel
Post: Anti Vowel

What is wrong with this code? It should return the text without vowels. def anti_vowel(text): new = list(text) for letter in new: if letter in "aeiouAEIOU": new.remove(letter) newes...
OmarBrikaa General Coding Help 2 3,944 Aug-14-2017, 07:05 PM
    Thread: Rock, Paper, scissors
Post: RE: Rock, Paper, scissors

(Jul-10-2017, 12:03 PM)ichabod801 Wrote: You need parentheses after upper on line 8. Right now User_Choice is a method of a string, not the string itself, and is testing false against everything. Th...
OmarBrikaa General Coding Help 5 5,504 Jul-11-2017, 09:09 AM
    Thread: Rock, Paper, scissors
Post: RE: Rock, Paper, scissors

I apologize for the delay. Here is the clean code from my pc. #Rock Paper Scissor def game():    import random    Dic = {1:"R", 2:"P", 3:"S"}    PC_Choice = Dic[random.randint(1, 3)]    print (PC_Choi...
OmarBrikaa General Coding Help 5 5,504 Jul-10-2017, 09:55 AM
    Thread: Rock, Paper, scissors
Post: Rock, Paper, scissors

What is wrong with this Rock, Paper, Scissors game? Ignore the indentation, it got messed up after copying. Rock Paper Scissor def  game(): import  random Dic =  (1:"R", 2:"P", 3:"S") PC_Choice = ...
OmarBrikaa General Coding Help 5 5,504 Jul-07-2017, 06:37 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020