The 5th lesson of Python tutorial strings

Publicado em: 07 Março 2019
no canal de: BoardCode
20
4

This is the 5thr lesson of Python tutorial, in this lesson we deal with sequences, the second category of data types in Python.
Link : http://bit.do/eKx5k

Basically, there are 5 kinds of sequences strings, lists, tuples, sets and ranges . On the other hand, there is another division of sequences, mutable and immutable.

Here, we would discuss strings. About the others we would later.

A sequence is an object consisted of an ordered and an indexed group of item.

A string ( str for short) is any character enclosed between a pair of single or double quotation marks. Strings are sequences.

For example 'Python' and "Python" are strings. Unlike Java and C++ , in Python there is no type called char ( a char is a string has only one character).

Making a string:

To make one, you can simply use a pair of single or double quotation marks, or use the built-in function str(), in fact str() function is used to convert integers and floating point numbers to a string.

Examples.

'' an empty string ( has no character)

" " holds the whitespace character (space button from keyboard).

str("python") returns "python".
*****************************************************************
https://boardcode.blogspot.com/
  / boardcode-387065785376027  
  / board_code  
  / board__code  

#python #python_tutorial #strings


Nesta página do site você pode assistir ao vídeo on-line The 5th lesson of Python tutorial strings duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário BoardCode 07 Março 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 20 vezes e gostou 4 espectadores. Boa visualização!