Data Type In Python☺
Three Major Data Type In Python
- STRINGS
- NUMBERS
- BOOLEAN
1-STRINGS:
It Is A Sequence Of Character
For Example
Name="Noor"(")
Name='Noor'(')
2-NUMBERS:
Whole No Or Decimal No
For Example
Age="25"(Whole No)
Profit="25.366"(Decimal)
3-BOOLEAN:
True Or False
For Example
Is_valid="true"
Is_valid="false"
Function of #
It Is use For Comment Out The Line It Is Mostly Use In Every High Level Programming To Define The Function What The Function Actually Want To Work(Just For Define The User It Does not Perform Any Function)
For Example:
#print("Is This Function Work")
Output:
empty😏
Function Of Triple Strings("""):
The Function Of Triple Strings Is Same As The Function Of # It is Used To Comment Out The Functions
For Example:
"""print("Is Triple Strings Also Comment Out The Functions")
a=1
b=2
c=a + b
print("The Sum Of a & b is "+c)"""
Output:
empty😏