RUVIDEO
Поделитесь видео 🙏

Python Programming in 30 Days Day-17

Python Programming in 30 Days Day-17

Exam block #2: Data Types, Evaluations, and Basic I/O Operations (20%)
Objectives covered by the block (6 exam items)
operators: unary and binary, priorities and binding
bitwise operators: 
Boolean operators: not and or
Boolean expressions
relational operators ( ), building complex Boolean expressions
accuracy of floating-point numbers
basic input and output operations using the input(), print(), int(), float(), str(), len() functions
formatting print() output with end= and sep= arguments
type casting
basic calculations
simple strings: constructing, assigning, indexing, immutability

Operators in Python

Operators are used to perform operations on variables and values.

Python divides the operators in the following groups:

Arithmetic operators
Assignment operators
Comparison operators
Logical operators
Identity operators
Membership operators
Bitwise operators

Python Arithmetic Operators

Arithmetic operators are used with numeric values to perform common mathematical operations:

Operator Name Example
+ Addition x + y
- Subtraction x - y
* Multiplication x * y
/ Division x / y
% Modulus x % y
** Exponentiation x ** y
// Floor division x // y

Python Assignment OperatorsBasic input and output operations using the functions

Print () – Function prints the specified message to the screen.
eg. print("Hello", "How are you? ")

2. Input () – Is ask to user for some text input. You call this function to tell the program to stop and wait for the user to key in the data.

3. LEN () – Is used to get the length of a string , use the len() function.

4. Float() – Is used to removes the space from the string.

5. str () – Is used string in lower case.

Python print() Function

The print() function points the specified message to the screen , or other standard output device.

Syntax

Print(object(s), separator = separator , end=end)

Print as object:
Print(“Hello”, ”How are you? ”)

Print a tuple:
X= (“apple” ,”banana”, ”cherry”)

Print two messages and specify the separotor

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python Programming in 30 Days Day-17», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.