Jul 26, 2008

Need Help With My Python Programs - just extremely basic stuff

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Others
Pages: 1, 2

free web hosting

Need Help With My Python Programs - just extremely basic stuff

iGuest
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
Case of letters
Need Help With My Python Programs

Replying to Trap FeedBacker
The 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



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. how to write basic python program - 15.00 hr back. (1)
  2. basic python program - 26.79 hr back. (1)
  3. programs made with python - 34.30 hr back. (1)
  4. python negative number validation - 61.70 hr back. (1)
  5. python basic program - 76.53 hr back. (1)
  6. python for loop in formula -vba - 108.98 hr back. (1)
Similar Topics

Keywords : python, programs, extremely, basic, stuff

  1. Python
    (1)
  2. 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 ....
  3. [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....
  4. 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 ) ....
  5. 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....
  6. 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....
  7. 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  
    ", ....
  8. 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! ....
  9. 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. ....
  10. 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?....

    1. Looking for python, programs, extremely, basic, stuff

Searching Video's for python, programs, extremely, basic, stuff
advertisement



Need Help With My Python Programs - just extremely basic stuff



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE