Python introduction
Python is an object-oriented, high-level programming language with integrated dynamic semantics primarily for web and app development. ... Developers can read and translate Python code much easier than other languages.
To do that we need to go download python , and we will choose pycharm
From there we will follow the sequence:
- New Project
- Call it My first project
- Choose python 3.7
- New Python File
- Call the file app.file
Using a
print
statement, output a message of your choosing to the terminal.print "hello world" them click run
Do the next line in the graphic as well
We can spell certain words as well
Concepts:
Statement In programming we call anything that carries out some action a statement. Programs you’ll write will be made up of many statements that work together to produce the desired result, output something useful
In each line, we have a statement Between the () we have a string: a series of charactersIn line 6 we are multiplying a string by number 10.Text in Python is considered a specific type of data called a string. A string, so named because they’re a series of letters, numbers, or symbols connected in order
A string needs to be opened and closed by the same type of quote mark.
Exercise 1: First program
This is your first python program. We will check on your name. Them run the program, and we will answer the question
We will need to understand the variable, that is Data that is subject to change at different times
price= 20 (integer) Whole number without a decimal point
rating= 8.5 (float)
name=Michael (strings)
is_publised=True (boolean) True or false
Exercise 2 : Using variable
Let 's do another exercise
So far trying to remember this:
.
Python introduction
Reviewed by ohhhvictor
on
May 04, 2019
Rating:
No comments: