[GO] Ideone> Python version: 3.5 (as of August 29, 2017)

Regarding the method of specifying the print format in Python, I tried the following comment method. http://qiita.com/Shogo-Sekine/items/e42ddb9b47d36f8b5cba#comment-07f18428812589475fa8

PEP seems to correspond to the following. https://www.python.org/dev/peps/pep-0498/

Is it the term "F-strings"?

I tried with ideone. https://ideone.com/tWyBaj

compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "./prog.py", line 4
    print(f'pi:{pi}, napier:{napier}')
                                    ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError:   File "./prog.py", line 4
    print(f'pi:{pi}, napier:{napier}')
                                    ^
SyntaxError: invalid syntax

As of August 29, 2017, the Python version of ideone seems to be 3.5. v3.6 code snippet

Recommended Posts

Ideone> Python version: 3.5 (as of August 29, 2017)
Version upgrade of python Anaconda
Check OpenSSL version of python 2.6
[Python] Tuple version of prefecture pull-down
pyenv-change the python version of virtualenv
Change the Python version of Homebrew
[Python machine learning] Recommendation of using Spyder for beginners (as of August 2020)
About the virtual environment of python version 3.7
[Python] Try pydash of the Python version of lodash
Introduction of Python
Basics of Python ①
Basics of python ①
Copy of python
PYTHON2.7 64bit version
Introduction of Python
Example of taking Python> function> * args as arguments
Use OpenSeesPy regardless of OS or Python version
A note about the python version of python virtualenv
Try the free version of Progate [Python I]
[Rust / Python] Handle numpy with PyO3 (August 2020 version)
"Linear regression" and "Probabilistic version of linear regression" in Python "Bayesian linear regression"
[Python] Operation of enumerate
List of python modules
Implementation example of simple LISP processing system (Python version)
(Python) Treat integer values as a set of flags
Unification of Python environment
Copy of python preferences
Installation of OpenMDAO (version 1.7.1)
Basics of Python scraping basics
[python] behavior of argmax
Usage of Python locals ()
the zen of Python
Installation of Python 3.3 rc1
Let's use the Python version of the Confluence API module.
Support for Python 2.7 runtime on AWS Lambda (as of 2020.1)
Save screenshot of [Python] [Windows] screen as an image
# 4 [python] Basics of functions
Basic knowledge of Python
Sober trivia of python3
Summary of Python arguments
Python version switching (pyenv)
Basics of python: Output
Runtime version of Google App Engine / Python Standard Environment
Installation of matplotlib (Python 3.3.2)
Application of Python 3 vars
EP 1 Know Which Version of Python You ’re Using.
Various processing of Python
Version control of Node, Ruby and Python with anyenv
Check version with python
Put the latest version of Python on linux (Debian) on Chromebook
I want to specify another version of Python with pyvenv
Get only the Python version (such as 2.7.5) on the CentOS 7 shell
Memo of python + numpy/scipy/pandas/matplotlib/jupyterlab environment construction on M1 macOS (as of 2020/12/24)
Using Docker (Hyper-V) with PyCharm on Windows 10 (as of August 2017)
What is the default TLS version of the python requests module?
[2020/06 latest version] Basic usage of python dependency management tool poetry
Align the version of chromedriver_binary
[Python] Correct usage of map
Summary of python file operations
Summary of Python3 list operations
Python --Quick start of logging