Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuple with one element python

tuple_or_not = ("python")
print(type(tuptuple_or_not))
#output
<class 'str'>

###################################
tuple_or_not = ("python",)
print(type(tuple_or_not))
#output
<class 'tuple'>
 
PREVIOUS NEXT
Tagged: #tuple #element #python
ADD COMMENT
Topic
Name
8+4 =