Created
September 11, 2019 16:16
-
-
Save DuncantheeDuncan/2c615ee773e42c0ba4ff19d6042c5f28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#getting typeOf | |
space = "\n" | |
# assigning an Integer | |
integer = 13 | |
print "The variable type of integer variable is : ",type(integer) | |
print "The integer number is :",integer,space | |
# assigning a String | |
string = "This is a string variable." | |
print "The variable type of String variable is : ",type(string) | |
print string,space | |
#assinging a boolean | |
boolean = True | |
print "The variable type of boolean variable is : ",type(boolean) | |
print boolean,space | |
# assagning the tuple | |
theTuple = ("Sabelo","Philasande","Yende","Kilambe") | |
print "The variable type of tuple is : ",type(theTuple) | |
print theTuple,space | |
#assagning a List | |
list = ["a",4] | |
print "The variable type of list variable is : ",type(list) | |
print list,space |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment