Skip to content

Instantly share code, notes, and snippets.

@DuncantheeDuncan
Created September 11, 2019 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuncantheeDuncan/2c615ee773e42c0ba4ff19d6042c5f28 to your computer and use it in GitHub Desktop.
Save DuncantheeDuncan/2c615ee773e42c0ba4ff19d6042c5f28 to your computer and use it in GitHub Desktop.
#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