I have three variables. I know names for the two first, but not for the last one.
Code:
somev1 = ['"Peter"','"20"'] # List
somev2 = ', '.join(somev1) # Just a string, that was joined from first list
somev3 = "Peter", "20" # I don't know
print(somev1) # Output : ['"Peter"', '"20"']
print(somev2) # Output : "Peter", "20"
print(somev3) # Output : ('Peter', '20')
>Solution :
somev3 = "Peter", "20" creates a tuple which is like a list accept it is not mutable.
It would be equivalent to:
somev3 = ("Peter", "20")
#or
somev3 = tuple(["Peter", "20"])