Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Writing Lines of Code | Introduction to Programming
Python Tutorial for Beginners
course content

Зміст курсу

Python Tutorial for Beginners

Python Tutorial for Beginners

1. Introduction to Programming
2. Variables in Python
3. Comments
4. If...Else Statement

Writing Lines of Code

In this chapter, you will get your first experience writing actual code. Our hope is that you will see how easy it can be, but if it presents challenges, don't be discouraged.

The Print Statement

In Python, the command print tells the program to display words or numbers on the screen. Here is a line of code that tells Python to display the words 'Hello, kitties!'

<span style='color:green'>print</span> is a keyword -- that is, a word, that has special meaning for Python. It means, 'Display what is inside the parentheses'.

<span style='color:green'>print</span> is not capitalized. If you capitalize it, the program will not run.

Well, let's practice a little?

Завдання

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

Завдання

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 1. Розділ 1
toggle bottom row

Writing Lines of Code

In this chapter, you will get your first experience writing actual code. Our hope is that you will see how easy it can be, but if it presents challenges, don't be discouraged.

The Print Statement

In Python, the command print tells the program to display words or numbers on the screen. Here is a line of code that tells Python to display the words 'Hello, kitties!'

<span style='color:green'>print</span> is a keyword -- that is, a word, that has special meaning for Python. It means, 'Display what is inside the parentheses'.

<span style='color:green'>print</span> is not capitalized. If you capitalize it, the program will not run.

Well, let's practice a little?

Завдання

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

Завдання

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 1. Розділ 1
toggle bottom row

Writing Lines of Code

In this chapter, you will get your first experience writing actual code. Our hope is that you will see how easy it can be, but if it presents challenges, don't be discouraged.

The Print Statement

In Python, the command print tells the program to display words or numbers on the screen. Here is a line of code that tells Python to display the words 'Hello, kitties!'

<span style='color:green'>print</span> is a keyword -- that is, a word, that has special meaning for Python. It means, 'Display what is inside the parentheses'.

<span style='color:green'>print</span> is not capitalized. If you capitalize it, the program will not run.

Well, let's practice a little?

Завдання

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

Завдання

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

In this chapter, you will get your first experience writing actual code. Our hope is that you will see how easy it can be, but if it presents challenges, don't be discouraged.

The Print Statement

In Python, the command print tells the program to display words or numbers on the screen. Here is a line of code that tells Python to display the words 'Hello, kitties!'

<span style='color:green'>print</span> is a keyword -- that is, a word, that has special meaning for Python. It means, 'Display what is inside the parentheses'.

<span style='color:green'>print</span> is not capitalized. If you capitalize it, the program will not run.

Well, let's practice a little?

Завдання

You should type in the console the chocolate you like. Well, for example "I like dark chocolate" or maybe "I like milk chocolate". Try yourself.

Click button below code to check the solution of this task.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 1. Розділ 1
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt