Search code examples
pythonpython-3.xprintingspelling

print in python using python3 without python2 and python1 or both at the same time?


I've tried prynt(xd) prihnt(?O) but none of them work:

prrrrrrint(xd)
prrrrrrint(xd)
prrrrrrint(xd)
prrrrrrint(xd)
prrrrrrint(xd)
prrrrrrint(xd)

Solution

  • Here's the thing:

    I don't know what exactly you are trying to accomplish, but I'm guessing that you want to know how to print in python, no?

    Great, then here's how you do it:

    In Python 3...

    If you have a String, integer, float, etc. stored in variable a, then you can print by:

    print(a)
    

    For any version of Python under 3...

    If you have a String, integer, float, etc. stored in variable a, then you can print by:

    print a