iGuest
May 13 2008, 11:09 PM
| | Replying to Trap FeedBacker
Name = raw_input("What is your name?") If name == "Mario":
You made a variable Name, but rewrote it as name. Its just a problem with the uppercase/lowercase and...Sooo:
Name = raw_input("What is your name?") If name == "Mario":
-reply by George |
Reply
iGuest
Jun 10 2008, 08:51 AM
Case of letters
Need Help With My Python Programs
Replying to Trap FeedBackerThe problem with your program is most like the upper case in the original variable "Name". After the first line you type name with a lowercase. Python is very very case sensitive. So if you just replace the first Name with a lowercase name it should work. So it will look like this. Name = raw_input("What is your name?") If name == "Mario": Print 'Hello, thats a beautiful name!' Else: Print "Hi, nice name,",name -reply by Zemeus
Reply
Recent Queries:--
how to write basic python program - 15.00 hr back. (1)
-
basic python program - 26.79 hr back. (1)
-
programs made with python - 34.30 hr back. (1)
-
python negative number validation - 61.70 hr back. (1)
-
python basic program - 76.53 hr back. (1)
-
python for loop in formula -vba - 108.98 hr back. (1)
Similar Topics
Keywords : python, programs, extremely, basic, stuff
- Python
(1)
Python
another programming language (8) There are so many languages used in software and web development. Python is one of them. Basically
Python is object-oriented , high-level programming language with dynamic semantics. Python was
developed in the 90’s. Python is simple and easy to learn. Therefore it reduces cost of program
maintenance. It is very attractive for rapid application development because of its high-level
built-in data structures, combined with dynamic typing and dynamic binding. Python is also use as a
scripting or glue language to connect existing components. Python supports modules and ....
[pygame] Python Game
(4) On this tutorial we will see how to draw a circle on the screen and move it around using the arrows
of the keyboard. (Don't worry if you don't get anything, the code will be analysed line by
line) CODE #!/usr/bin/env python import pygame from pygame.locals import * if not
pygame.font: print 'Atention, there are no fonts.' if not pygame.mixer:
print 'Atention, there is no sound.' pygame.init() red = (255, 0,
0) black = (0, 0, 0) window_width = 640 window_height = 480 window = pygame....
Python Manace: Control Flow I
python tutorial (3) Hello This is the first part of my Python tutorial. The code is pretty self-explanatory so few
comments should be enough. If not - let me know. Tutorial assumes that You have already Python
installed. Python 2.4 should be enough. Let's go, then. #! /usr/bin/env python # -*-
coding: utf-8 -*- import math def squareRoot_1( lst ) : """Returns list of square
roots. No negative number validation. Allows fractions in result.
""" result = for el in lst : sqrtFloat = math.sqrt( el ) ....
Python
Programming Language (4) Does anybody else know any python? I've started learning it, because I heard somewhere that it
is quite easy to learn and I want to learn a programming language quickly /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />. I haven't learned how
to do any complex stuff with it yet, but its still fun learning about it /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />. If you want to find out
more info about Python, then you can go to their website. I'm not sure if i'm allowed to
post links....
Password Generator
Made in Python (9) This is a Password Genorator i made in python use Tkinter as the GUI. I will Compile it soon so
people with out Python can use it. here is the source code CODE import random, math from
Tkinter import * root=Tk() root.title("PassGen") length = Label(root,
text="password length:") length.pack() input = Entry(root,
text="8") input.pack() input.insert(0, "8") units =
"abcdefghijkmnopqrstuvwxyz0123456789" password = Label(root,
text="password:") pas....
Fib Gen In Python
(1) OK this is one of my first programs.. from Tkinter import * CODE def NextNumber():
count = 0 x = 0 y = 1 while count <= int(Range.get()):
for item in [x]: listbox.insert(0, item) z = x
x = z + y y = z count = count + 1 root = Tk() Title =
Label(root, text = "Calculate fib number:") Title.pack() Range =
Entry(root) Range.pack() PrintNextNumber = Button(root, text = " Display
", ....
How Do I Create Programs?
(17) how do i create programs like, a browser, or a sible program that is a calcualor ect. how do i make
toolbars and things like that? -Microsoft Lack of content and missing topic description.
Warning! ....
Delicious + Gmail
python (2) I stumbled upon this link earlier today and was hoping someone could explain or walk me through
getting the script running. http://ponderer.org/del.icio.us I'll keep the post short since I
have no clue as to what I should. I'll just say that I rarely work on WinXP and I would rather
get it running on my old win box sitting in the corner. ....
Ok, So I'm Learning Python...
(3) I was wondering, can I make games in python, even simple text based ones? me and my friend wanted to
start making homebrew games, and we decided to start out learning python. I've learned a bit,
not much, but enought to make one of those conversations with the computer, like with loops and
where they ask questions like "what is your name?" and then say it back etc. We plan on also
learning C++, which we will learn later after we get real good with Python. However, will I
eventually be able to make games with Python?....
Looking for python, programs, extremely, basic, stuff
|
|
Searching Video's for python, programs, extremely, basic, stuff
|
advertisement
|
|