hvtuananh

Brooklyn, NY

cnttbachkhoa.com

Age: 27

My personal blog: http://www.hvtuananh.com

1d
awarded Autobiographer
1d
awarded Supporter
Feb
26
awarded Yearling
Feb
26
comment Trying to split file path into a tuple using recursion
For example, enter the following in Python console: string = '''C:/Users:/Games''';string.split('/')
Feb
25
awarded Yearling
Feb
25
comment Trying to split file path into a tuple using recursion
Yeah now I realized the question is about tuple. In this case I will probably modify the function to return a list instead, and convert to tuple in the end.
Feb
25
answered Trying to split file path into a tuple using recursion
Feb
25
comment Python - Sum of the factorials
sorry I forgot to re indent the B=B+A line. Basically you would need to do this once for every factorial
Feb
25
answered Python - Sum of the factorials
Feb
25
comment Having trouble resolving a 'list index out of range' error
If error is at file_no2 = line2.split()[0] then I guess line2 is empty.
Feb
13
awarded Famous Question
Jan
13
awarded Yearling
Jan
13
awarded Yearling
Nov
25
awarded Nice Answer
Nov
21
answered Recursion - cannot concatenate 'str' and 'NoneType' objects
Oct
27
awarded Autobiographer
Oct
27
awarded Supporter
Oct
23
awarded Good Question
Oct
23
awarded Reviewer
Oct
23
reviewed No Action Needed Windows 8.1 Grouped Taskbar Button Selection
1 2 3 4 5