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
    • 273
    Comment on it

    print : It produces text output on the console.


        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.


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


    Hello, world!
    You have 20 years until retirement

 0 Comment(s)

Sign In

Sign up using

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: