Архив метки: Python

Python – programming environment and additional programs

When you have installed Python, the question arises – how to start learning this language? Should I write commands through the console or do I need to install something else on the computer? There are many programming environments and solutions for Python, but for a beginner, it is preferable to choose from two:

  • if you are learning Python for scientific purposes, then download Anaconda from www.continuum.io/downloads – this environment already includes Python, as well as such useful programs for programming and analytics as Spyder, Jupyter, IPython, R and others.
  • you are learning Python for general development, then install the cool Sublime Text code editor from sublimetext.com; in this case, you will need to manually configure the Python interpreter to run the program written in this editor.

Читать →

Python: списки и словари

Продолжаем учить язык программирования пайтон Python. Переходим к изучению 5 главы по книге: Майкл Доусон “Программируем на Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), где освоим списки, списочные методы и словари.
Читать →

Python – среда программирования и дополнительные программы

Когда вы установили Python, возникает вопрос – как начать изучать этот язык? Писать ли команды через консоль или нужно установить на компьютер что-то еще? Для Python есть множество сред программирования и разных решений, но для новичка предпочтительно выбрать из двух:

  • вы изучаете Python в научных целях, тогда скачивайте Anaconda с сайта www.continuum.io/downloads – в эту среду уже входит Python, а также такие полезные программы для программирования и аналитики как Spyder, Jupyter, IPython, R и другие.
  • вы изучаете Python для общих разработок, тогда установите крутой текстовый редактор кода Sublime Text с сайта sublimetext.com; в этом случае нужно будет вручную настроить интерпретатор Python, чтобы запускать программу, написанную в этом редакторе.

Читать →

Python: Problems and Solutions (Chapter 4. For Loops, Strings, and Tuples. The Anagram Game).

We continue to practice programming. After the fourth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to use the for statement and create tuples, tasks were suggested. Let’s do them together. I will give my solution, and you write your options in the comments.

1. Write a “Counting” program that would count at the request of the user. We should allow the user to enter the beginning and end of the count, as well as the interval between called integers. Читать →

Python: Problems and Solutions (Chapter 5 Lists and Dictionaries Hangman Game).

We continue to practice programming. After the fifth chapter in the book: Michael Dawson “Programming in Python”, 2014 (Michael Dawson “Python Programming for the Absolute Beginner”, 3rd Edition), where I learned how to make dictionaries and use lists, it’s time to move on to practice. Let’s do our homework together!

Task: Write a program that will display a list of words in random order. All words from the presented list should be printed on the screen without repetition.

Читать →