Learn Python For Free
@LearnPython3_
Followers
32
Following
0
Media
4
Statuses
21
Want to learn #Python with ease? Then follow this account for some great tips
world
Joined March 2022
wow!!! This is my very first tweet here. Why I've decided to create this twitter account? Just to share with you my knowledge in python #Python #pythonprogramming #pythondeveloper #pythoncode #pythonlearning #Python3
0
0
2
Data types bool: Booleans are used for Truthiness. A variable declared as a boolean has only two choices as content which are True and False.
0
1
0
Data type str : Consider str data types like raw text like "I like coding" , 'Enjoy life !!!' , """It's just me""". Those are different ways to declare str data type variables.
1
1
0
Data type float: It's decimal numbers like 10.5 , -12.8 , 458.0 etc...
1
1
0
Data type int : It's just whole numbers or integers like 1, 50, 47 etc..
1
1
0
Data types bool: Booleans are used for Truthiness. A variable declared as a boolean has only two choices as content which are True and False.
0
1
0
Data type str : Consider str data types like raw text like "I like coding" , 'Enjoy life !!!' , """It's just me""". Those are different ways to declare str data type variables.
1
1
0
Data type float: It's decimal numbers like 10.5 , -12.8 , 458.0 etc...
1
1
0
Data type int : It's just whole numbers or integers like 1, 50, 47 etc..
1
1
0
An example to display text and a variable at the same time Displaying the value of a variable without a description can be confusing for the readability of the code. print("I am", age," years old") you can see the comma as a separator between the text and the variable.
0
1
1
An example to display a variable age: print(age) age is a variable. We see the quotes have been removed, if we don't remove the quotes then the print function will take it as plain text instead of the variable age, and will not display the value of the age but the text age.
1
1
0
An example to display text and a variable at the same time Displaying the value of a variable without a description can be confusing for the readability of the code. print("I am", age," years old") you can see the comma as a separator between the text and the variable.
0
1
1
An example to display a variable age: print(age) age is a variable. We see the quotes have been removed, if we don't remove the quotes then the print function will take it as plain text instead of the variable age, and will not display the value of the age but the text age.
1
1
0
Yesterday we gave the definition of a variable, and today we will know how to display them in the console in #python. To display a raw text or a variable in the console, the "print" function is used. The rest of the thread👇
1
0
1
If you want to write and test your #python code, I recommend you https://t.co/AWcExwVZHd. This is website is user-friendly to execute your #python code easily.
0
1
1
If you want to write and test your #python code, I recommend you https://t.co/AWcExwVZHd. This is website is user-friendly to execute your #python code easily.
0
1
1
In today's lesson we will talk about variables. Variables are one of the pillars of computer programming. Variables are symbols that associate a name with a value. In most languages, especially in #python, variables can change their value over time.
1
0
0
What is python and who created it? Python is the most widely used open source programming language among computer scientists. Python has taken the lead in infrastructure management, data analysis or in the field of software development. It was created in 1991 by Guido Van Rossum.
0
0
1