You can have up to 11 players on the field but most of the time you have 9.   There is the pitcher,catcher,third basemen,short stop,second basemen,first basemen,left â¦ field,center field,and right field.   The way you get up to 11 players is if you put some in right center and left center field.
A tuple is a fixed fixed-length list containing elements that need not have the same type. It can be, and often is, used as a key-value pair. A row (sometimes called a record) is the set of fields within a table that are relevant to a specific entity.
a = a.split(,) # creates a list [1, 2, 3] (items are strings). a = [int(x) for x in a] # creates a list [1, 2, 3] (items are integers). a = tuple(a) # coverts to a tuple. or as a one-liner: a = (1,2,3). a = tuple([int(x) for x in a[1:-1].split(,)]).Best of all, wrap your logic in a function definition with some.e: how to convert string to list or tuple. Fuzzyman. 6/1/05 6:42 AM. Probably a bit late... but there's always listquote-It's part of the. pythonutils module. http://www.voidspace.org.uk/python/pythonutils.html. It will turn strings to lists, including nested lists.