Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python data types

x = "You Rock!" #str	
x = 69	#int	
x = 69.9	#float	
x = 1j	#complex	
x = ["red", "blue", "green"]	#list	
x = ("red", "blue", "green")	#tuple	
x = range(20)	#range	
x = {"name" : "Taylor", "age" : 35}	#dict	
x = {"red", "blue", "green"}	#set	
x = frozenset({"red", "blue", "chegreenrry"})	#frozenset	
x = True	#bool	
x = b"You Rock!"	#bytes	
x = bytearray(10)	#bytearray	
x = memoryview(bytes(10))	#memoryview	
x = None	#NoneType
 
PREVIOUS NEXT
Tagged: #python #data #types
ADD COMMENT
Topic
Name
1+4 =