You must program on your level raising it little by little. Can you give example of easy program you finished until working condition and hardest program you did until now? Have you not been able to finish any program? Have you done some programs suggested in sticky threads in begining of Python forum threads?
While I don't quite understand the language in that program, I do understand what your program is doing. So it looks like you've just started using classes. How about creating a program utilizing a GUI, I suggest tkinter for its simplicity.
First,learn how to implement the basics you're learning into something useful, while you are doing that you may find that you want to add more features, those features may require you to learn more advanced things. For example, recently I learned how to utilize SMTP to send E-mails from a program. As you do this you will learn more advanced skills and gain knowledge of third-party modules as well as built-in modules you haven't yet had to use.
#please do not use old style classes in new programs
# pass does not make sense in class definition if you have defined something
# function not using instance variables (__slot__ or __init__ initialized)
# what is the benefit of the class here
# so you are using Python2 (raw_input, print not function)
# a does not mean anything to me, add prompt does not make clear that we should input integer value
if (a<= 15):
# why not else as this is all other numbers?
a = Abc()
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...