- Upvotes Received
- 17
- Posts with Upvotes
- 15
- Upvoting Members
- 12
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
interested in python programming
- PC Specs
- software
47 Posted Topics
hi , I found this code on the internet , I changed and added some lines to it to make it the way I like . I am very weak in using functions and even worse in using classes , I appreciate it if some one can change this code … | |
Re: the code works fine on my windows machine but on ubuntu 14.04 it says it can not find ' tix ' . do I need to install it separately ? | |
Re: nice code , the problem was on line 40 where you missed " at the end of the sentence . also when I ran your code and entered n it did not quit , it should not be hard to fix it | |
hi , I have two different versions of python on my ubuntu machine : 2.7 and 3.4 . my question is how to tell sys.executable to use python 3.4 ? this is what I get when I run the code : `>>> import sys >>> print sys.executable /usr/bin/python which is … | |
I do not like the new design , tonight , I can not find the python forum . whose idea was this anyway ? | |
since the forum has been quiet for a while I thought to post this program , it might start new discussions . the idea is not new but it should be interesting to starters . as usual any comments is appreciated | |
hi , I am trying to first ask the user how many numbers he has ( I have not coded this part yet but assumed number 5 ), then enter the first number , hit enter , enter another number in the same entery widget up until the numbers are … | |
hi , I used to right click on a .jar file and select " open with openjdk " from the option menu , last night my computer was updated ,openjdk version 7 is installed but that option is no longer there when I right click on the .jar file , … | |
Re: I am glad to see so many experienced programmers in the forum. I did some programing in mid 70s in fortran , assembly and c but after getting my BSEE I moved on to semiconductor devices and fiber optics and that was the end of my programming . the reason … | |
in windows calculator the digits get seperated in thousands as you type in the number , how can it be done in python ? thanks | |
Re: @pyTony hi , I ran your code in python3 , it does not like izip_longest but it was fine with python2 . what should we use instead ? | |
well , I just realised that we forgot about our " turtle " so here it is printing " hello world " from turtle import * title("hello world") shape("turtle") speed(2) color("blue") write('hello world',align = 'center', font=('imes New Roman', 36,'bold')) done() | |
@Niloofar24 was looking for an Iranian datetime package and last night I found one in the internet so I wrote a simple code which counts the days and hours and seconds to Iranian new year | |
Re: to make the code compatable to python 3 , replace xrange with range in line 18 replace line 17 with the line below: for i in ['\u2663', '\u2660', "\u2666", "\u2665"]: | |
Re: when I ran the program I found several mistakes : first I commented out line 10 second:line 14 should be StringIO not String10 third:in line 58, with should be width forth: line 65 file.add_command should be filemenu.add_command fifth: line 73 should be : editmenu=Menu(filemenu,tearoff=0) after fixing all that , it … | |
Re: hi @Nillofar24 , try this link http://stackoverflow.com/questions/4327021/python-count-down-to-event-in-days-and-hours | |
Re: I do not want to confuse you by adding more books to your list but al sweigart free books are good books to practice with after you have learned the basics of python | |
hi , I am trying to write " hi " in persian using unicodes like this : print('\uFEB3\uFEFC\uFEE1') but it prints from the left side and in reverse order like " ih " ( in persian or farsi language we write from right to left ) how can I fix … | |
hi , I am using florence virtual keyboard on my ubuntu 14.04 machine . today I read an article which says scrambled virtual keyboards are safer than regular virtual keyboards . is there any scrambled virtual keyboard for ubuntu ? should I be concerned about using florence or onboard ? … | |
Re: I use one password for all my internet accounts , it is a sentence consisting of 6 words ( english + persian ) which reminds me of my college girlfriend . | |
hi guys , first of all merry Christmas and happy new year since there have been many discussions about favorite idle for python , al sweigart is trying to improve python's own idle and everyone is invited to help out and since this is the best python forum I thought … | |
Re: just double click on the .deb file , ubuntu software center will open , click on install it will ask you for your password , enter the password and that is it | |
Re: what I have done on my windows 7 is that I have installed both versions on it , then have created short cuts of each idle on the desktop and just use whichever I want . I think vegaseat has posts on this matter too | |
hi , last night I downloaded pyzo package on my ubuntu 14.04 system , I just do not know how to get it working . any help is appreciated | |
hi , I am using ubuntu 14.04 LTS . my question is how can I delete the files in trash can using terminal . I have tried rm ~/.local/share/Trash/* but it says no file or directory thanks | |
Re: thanks pytony for the code , I have written a program for my own business but it lacked a code like yours . with your permission I will use it . | |
Re: can someone please explain to me how the pytony's count_fives function works ? | |
Re: hi pytony , I appreciate if you explain to me how the keys in the image corespond to my keyboard keys , eg, if I click on button 3 on the image , 3 will appear , and ,this code is way over my head , more explanation on each … | |
Re: in line 5 it should be print('ok,'+ MyName+'.........') in line 11 Farenheit = float(degree) in line 12: 'n' missing in convert line 14: print(convert_temperature(Farenheit)) it is a good practice to include your def at the begining of the code | |
Re: I changed your code a little bit ` #this is a multi question quiz intended to #further my python skills. print('welcome everybody to my quiz') print print('Would you like to begin?: ') begin = input() if begin == ('yes'): answer=input('How awesome am I?') print('A- Very') print('B- Extremely') print('C- Off the … | |
Re: hi vegaseat , can you explain why you have direction="" in your function ? thanks | |
Re: it seems you are using the new version of python .just use () around your print statements : print(" I am in function 1")and change all your print statements the same way | |
Re: I am using wing ide 101 4.1 which is free and I am quite satisfied with it , it is in ubuntu software center , I am not sure about suse's package manager | |
Re: hi , I did exactly as you said but I get this error Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import wx File "c:\python33\lib\site-packages\wx\__init__.py", line 17, in <module> from wx.core import * File "c:\python33\lib\site-packages\wx\core.py", line 6, in <module> from ._core import * ImportError: DLL load failed: … | |
Re: thanks snippsat , this was not clear for me either , now it is | |
hi , I just found a site (in chinese) which in python section has daniwebs codes , specifically all of vegaseats codes , is it legal ? www.sharejs.com | |
hi , I have found vegaseats codes and tutorials helpful for biginners , how can I collect them in the pdf format? | |
hi guys , I rented a gps from the airport and it had no problem giving me the directions , while using it , I kept wondering how it picks the routes , and can python be used to program these devices and how ? a short code would be … | |
hi all , I have installed ubuntu 9.04 , dual boot with xp , ubuntu can read the xp files but window xp does not see linux ( ext4) . does any one know of any ext4 driver for windows xp ? thanks | |
hi everybody : can any one tell me how to install farsi fonts in ubuntu 7.10 so that I can write texts in farsi thanx | |
hi everybody , I have a program (below) but don't know how to direct the out put to the printer , can anyone help thanks [code=python] from calendar import * setfirstweekday(5) #saturday prcal(2008) raw_input('hit a key') [/code] another question is that I tried writing " saturday " instead of "5" … | |
hi guys , I am interested in writing a code to do the soduko ( or sudoku ) , I found this code on the internet which is supposed to be the shortest soduko solver but it is so short that I can not undrestand it . can any one … | |
hi , below is my program which is supposed to accept 3 different numbers , add them up and print the result but what it does is that it takes the first number and mutiplies that by 3 , where have I gone wrong ? [code=python] from Tkinter import * … | |
hi all , I like to write a program which I input the dates and amounts of say 10 checks , and print out the total amount of checks and number of days thet are apart from each other on another entry widget . the code I have done sofar … | |
hi , thanks for the code , I have changed it a little bit , I have also added two buttons (+,-) I have written the code for (+) but it does not work , can you tell me what the problem is , the last lines which are commented … | |
hi everybody , I am new to python and interested in graphics . I like somebody to walk me thru monthly calendar using tkinter . I have already printed 07 calendar using python but I am stuck when it comes to use it with tkinter . it is no homework … |