Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~506 People Reached
Favorite Forums
Favorite Tags
Member Avatar for crumpet

Hi, I'm trying to create a "command line" in Python, which makes a user input a certain command and its associated data, without the use of brackets. So the user would input: >>> test 1 2 3 So it would carry out a command: [CODE=python] def test(firstnum,secondnum,thirdnum): return firstnum,secondnum,thirdnum [/CODE] …

Member Avatar for crumpet
0
151
Member Avatar for crumpet

Hi folks, Just hoping someone can point me in the right direction with this one. Say I have these key:value pairs in a dictionary, d1: [CODE="Python"] d1 = {fruit:['apples', 'bananas','oranges','tomatoes'], vegetables:['carrots','lettuces']} [/CODE] And I wanted to remove a list (containing tomatoes, oranges) from the value of the key fruit and …

Member Avatar for daniwebnewbie
0
137
Member Avatar for crumpet

Hi folks, Just hoping someone can show me where I'm going wrong here. I've been given a tutorial question to count the number of times a particular character (char) appears in a string. The only catch is that you need to use a for loop, as the online checker won't …

Member Avatar for sneekula
0
218