Pinned Tweet
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
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
Learn Python For Free retweeted
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.
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
Learn Python For Free retweeted
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.
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
Learn Python For Free retweeted
Data type float:
It's decimal numbers like 10.5 , -12.8 , 458.0 etc...
It's decimal numbers like 10.5 , -12.8 , 458.0 etc...
1
1
0
Learn Python For Free retweeted
Data type int :
It's just whole numbers or integers like 1, 50, 47 etc..
It's just whole numbers or integers like 1, 50, 47 etc..
1
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.
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 types bool:
Booleans are used for Truthiness.
A variable declared as a boolean has only two choices as content which are True and False.
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
Learn Python For Free retweeted
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.
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
Learn Python For Free retweeted
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.
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👇
To display a raw text or a variable in the console, the "print" function is used.
The rest of the thread👇
1
0
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.
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.
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
Learn Python For Free retweeted
If you want to write and test your #python code, I recommend you replit.com. 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.
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
If you want to write and test your #python code, I recommend you replit.com. This is website is user-friendly to execute your #python code easily.
0
1
1





