What does python -c 'print(1+1)' do?
Correct answer
C. Runs the code string given on the command line
5 views
C. Runs the code string given on the command line
5 views
The -c flag executes the Python code passed as a string.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is C? Ask here and get an explanation.