Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Get Print in Python

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 270
    Comment on it

    print : It produces text output on the console.

    Syntax:

        print "Message"
        print Expression

    To print the given text message or expression value on the console, you have to moves the cursor down to the next line.

    print Item1, Item2, ..., ItemN

    To prints several messages and/or expressions on the same line.

    Examples:

    print "Hello, world!"
        age = 45
        print "You have", 65 - age, "years until retirement"

    Output:

    Hello, world!
    You have 20 years until retirement
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: