Coding Challenges

MIT 6.00.1x : learnpython

Vezano za MIT (1) Are There Problems That Computers Can’t Solve? - YouTube


Introduction to Computer Science and Programming Using Python 6.00.1x, INSTRUCTOR-PACED!

Upgrade by September 02 and save 15% [Original price: $75, discount price: $63.75 $75] Use code EDXWELCOME at checkout! Upgrade Now

  • We have deadlines you’ll need to meet, with something due approximately every week; All deadlines are in the Calendar

  • Students should be able to get the work done in at most 15 hours a week

Coding Challenges

Source: Resources to Help you Succeed in 6.00.1x Courseware

Python

Switch to Python3 instead of Python2

1
2
3
4
5
# special package which set aliases for you
sudo apt-get install python-is-python3

# remove leftovers of python 2
sudo apt-get autoremove --purge

Fix pip

1
sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1

So we don’t need to type pip3 but normal pip will do.

Fix ipython

This works:

1
2
# if installed without sudo
python -m IPython

But to be able to start it simply by ipython you must type with sudo:

1
sudo pip install ipython

Now, normal command ipython works

About IPython

How is this interpreter an improvement over the default interpreter?

  1. Run Native Shell Commands
  2. Syntax Highlighting
  3. Proper Indentation
  4. Tab Completion
  5. Documentation (suffix command with ?)

https://www.codecademy.com/articles/how-to-use-ipython

Result

The following commands work as expected:

1
2
3
python --version
pip --version
ipython --version
date 01. Jan 0001 | modified 28. May 2021
filename: MOOC » EdX » MIT 6.00.1x Python