omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Why the version of python is 2.7 in Editorial and solution for this

    Editorial
    python 3.6 python 2.7.13
    1
    1
    1562
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • namnium1125
      namnium1125 last edited by

      Thank you for look.

      I'm Japanese. So I might write some wrong English. then, please excuse me.

      >>> a = 1
      >>> b = 2
      >>> 
      >>> print(a,b)
      

      When I run this code, I thought I would get the result like this:

      1 2
      

      but in fact, I got this result:

      (1, 2)
      

      then, I thought I got it simply because the version of python is 2.7 and print statement output tuple (1, 2).

      And I tryed this code:

      import sys
      
      print(sys.version)
      

      its result:

      2.7.12 (default, Nov 20 2016, 12:12:11) 
      [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)]
      

      My thought was correct. but...

      The version in Pythonista3 is 3, but Why in the world is the version of python in Editorial 2.7?!

      And I want use Python 3.x in Editorial.

      If you know somethings about this, could you tell me?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors