Introduction To Python and Computer Programming
Introduction To Python and Computer Programming
PROGRAMMING
WHAT COMES TO MIND WHEN YOU HEAR
THE WORD PROGRAMMER?
Have you ever tried coding?
COMPUTER PROGRAMMING
Computers understand only machine code. Programmers use compilers to translate source code that
they write to the machine code
POPULAR PROGRAMMING
LANGUAGES
HOW TO CHOOSE A COMPUTER LANGUAGE?
•Ask yourself what sort of work you would like to do
•Think about why you want to learn to code
•Every field comes with a set number of languages. Web development, for example,
differentiates between two main types of programming: front-end and back-end.
•So, it’s not really about choosing a language. It’s more about choosing a field. If you want to
create Android apps, choose Java; for iOS apps choose Swift, and if you want to develop
games, learn C, etc. And if your answer to the question "why" is "to make a lot of money,
idk", consider the most popular programming languages and start there.
WHAT SHOULD I EXPECT?
•A lot of it feels like a routine, and when it doesn’t, it’s more like hitting your head against
the brick wall in the middle of a desert.
•Programming isn’t just about languages and syntax and compilers, it’s the whole logical
thinking process that makes it so rewarding.
•It teaches you how to think differently.
•It teaches you patience.
•The bottom line is that programming is a skill.
REVIEW
TIME
WHAT IS THE MAIN REASON WHY WE HAVE
SO MANY PROGRAMMING LANGUAGES?
WHAT DO YOU ABSOLUTELY NEED TO
BECOME A PROGRAMMER?
WHAT IS PYTHON?
• Python 1.0 was released in 1994 and laid the basic principles of the language with emphasis
on simplicity.
• Python 2.0 was released in 2000. This version has become very popular among
programmers.
• Python 3.0 was the next major version released in 2008. It broke backward compatibility
with its predecessors in order to rid the language of historic clutter and make Python more
readable and consistent.
FIRST PROGRAM EXAMPLE
print("Learn Python to be great!")
THE HELLO WORLD PROGRAM
• To create a new Python file in your project, you can either go to File | New | Python file, or
right-click the FirstProject | New | Python file. Enter the name and hit OK.
PYCHARM CAPABILITIES
•If you don't have the Play button, go to View → Appearance and check Toolbar.
•When the program is executed, the result will appear in the Run tool window at the bottom of the screen:
• The first line shows the path to the project interpreter and the path to the program which has been executed
by this interpreter. The result of your program execution will follow. If you need more detailed information
on PyCharm, you can always refer to the official tutorial.
PYCHARM SETTINGS
CLOSURE ACTIVITY