No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Hi I'm trying to build two seperate dictionaries with a file thats arranged in this format. I need to take the name's reverse it so first name then last name, for the first dictionary I need to take the first name as the key and the other names in the … | |
Hello Sorry if this is confusing I'm really new to python and have been stuck trying to figure this out for hours now. I'm trying to write a function for a text based battlship game. I need the function to do this is_occupied: (int, int, int, int, list of list … | |
Re: If I run this piece of code: letters = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J' ] print "_____________________________________________" print "|===|_0_|_1_|_2_|_3_|_4_|_5_|_6_|_7_|_8_|_9_|" for x in range(0, 10): str_print = "|_%s_|" % (letters[x]) for y in range(0, 10): str_print += "_%s_|" % (comp_board[x][y]) print str_print I get an … |
The End.