14,946 Topics

Member Avatar for
Member Avatar for ZJRG.1997

I'm quite new to programming and i'm trying to write a formula to work out the capacitance of capacitors - and is what I have below. I then want to convert the value I have (in pico farrads) into micro farrads. Here's what I have so far: while True: x=float(input("First …

Member Avatar for Gribouillis
0
213
Member Avatar for liz517

I am to write a censor program for all 4 letter words from an imported file, only I'm stuck. can you help? [code = python] # wordcensor.py # Program replaces 4 letter words in a text file. import string def main(): print "This program replaces 4 lettter words in a …

Member Avatar for kcm1
0
1K
Member Avatar for alagez

Hai there, I am a robotic student and very new in python programming. Here, I have a project to classify the type of robot. For example, a customer would like to buy a robot arm for their company. So, this project will aid them to select robot of their choices. …

Member Avatar for alagez
0
277
Member Avatar for ZJRG.1997

I'm quite new to python and am trying to make a kind of 20Q thing, but am struggling - anybody know how to delete a list from a set, or if not a list from a list? Thanks :)

Member Avatar for Gribouillis
0
386
Member Avatar for tony75
Member Avatar for Alex_20

I'm getting this every time I try and write Hello, World in Python I get this. I'm using Pycharm 3 C:\Python33\python.exe C:/Users/Alex/PycharmProjects/Learning/Helloworld File "C:/Users/Alex/PycharmProjects/Learning/Helloworld", line 1 print "Hello, World" ^ SyntaxError: invalid syntax Process finished with exit code 1

Member Avatar for ishaan3731
0
274
Member Avatar for 9strick9

I want to calculate several floating point functions that are a function of two variables, i.e. a(x,y), b(x,y) etc. x and y can be represented as x=i*delx and y=j*dely. So a(i,j) or b(i,j) is what I would actually calculate. How do I code a and b as functions of i …

Member Avatar for David W
0
411
Member Avatar for Zahra_1

import random while True: dice = random.randrange(1,5) dice2 = random.randrange(1,7) dice3 = random.randrange(1,13) sides = int(input)("Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice. Type 0 to exit the loop.") if sides ==0: break elif sides ==4: print …

Member Avatar for Zahra_1
0
4K
Member Avatar for skyflower

I'm learning python 3 and I'm having problems with string related excerises. One exericse I'm working on is to write a program that cycle through a string and dispaly it like this: s u p e r n a t u r a l u p e r n a …

Member Avatar for brett.warren.1612
0
254
Member Avatar for katharnakh

Hi, How do I disable Copy/Cut/Paste operations on a textbox in Tkinter. I want to implement this in simple login form, where I found I can copy or paste or cut from textbox which is meant to accept PASSWORD. Can we do that? How? Thank you, Regards, kath.

Member Avatar for Gribouillis
0
2K
Member Avatar for arsh.goyal.98

hi can anyone please help me to solve out this problem in python language i want to print this pyramid please help me 1 22 333 4444 55555

Member Avatar for slate
0
153
Member Avatar for Zahra_1

![0930ac8855b75aa7c11605d2c389c3a5](/attachments/small/4/0930ac8855b75aa7c11605d2c389c3a5.PNG "align-left") here is the task, I don't want anyone to do the coding for me. I just would really love if I got a starting point on how to begin this code. thank you. oh and this is in python program.

Member Avatar for Zahra_1
0
222
Member Avatar for Michal_3

I have some code and i want to go back into a certain line however i am not sure how i can achive such things. #SnakeFactBook v.1 #Here is the begining of the book print("Hello.\nWelcome to the Bush Viper Fact Book.") #Ask for name name = input("What is your name?") …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for Rebecca_2

I apologise if there are answers to this elsewhere but my programming is very basic and I don't really understand - so please keep it simple and please be patient. If I have a list of strings. Is there an easy way of creating variables called by the items in …

Member Avatar for Gribouillis
0
205
Member Avatar for mark103

Hi all, I need your help, I have got a problem with my python script. I'm using XBMC media application which they are using python 2.6v which they works the same way as the other version for python. When I'm pressing on the enter button of the keyboard, the code …

Member Avatar for mark103
0
313
Member Avatar for Yozuru

Hello good people, I wanted to talk today about auxiliary functions. I have a brief understanding of what it is, however, I am still rather confused on what it actually does. Lets say for example I have a function that calculates leapyear as TRUE or FALSE, how would I use …

Member Avatar for slate
0
5K
Member Avatar for toll_booth

Hello everyone. I am trying to teach myself the very basics of the Brian neuron simulator before attempting to modeling realistic networks. Any of you guys know how to use it? Specifically, the first exercise I am attempting is: dx/dt = 1 + x - y - x^2 - x^3 …

0
134
Member Avatar for romil.agrawal.1

I just now installed python 3.3.4 on my mac os 10.9.1 mavericks. I am developing through the Wing IDE for mac. When i tried to change the python excutable from default to python 3.3.4 and restarted the program, a dialog box appeared thta said that the interpreter for python 3.3 …

Member Avatar for Alex_20
0
247
Member Avatar for kangarooblood

Hi there, I'm a real newbie to python so sorry if this is a stupid question or if I don't fully get your answer, no hate please! I'm trying to write a small program to use when calculating differential equations bu using Euler's step method, don't worry if you don't …

Member Avatar for rrashkin
0
347
Member Avatar for Opsive

Hello, I am writing a little script that needs to get the timezone from an rss feed, and I am using [URL="http://www.feedparser.org/"]Feed Parser[/URL] to parse the rss feeds. The way that I am converting the date into Unix Epoch time is: [CODE] feedDate = feed['feed'].get('updated_parsed') or feed.entries[0].get('updated_parsed') feedDate = mktime(datetime(*feedDate[0:6]).timetuple())[/CODE] …

Member Avatar for Gribouillis
0
876
Member Avatar for foshan

Hi all, I am new to programming, and i'm working from a booik which has set me a challenge with a random jumble word program to pair the jumble word with a hint. I have been going round in circles trying to work it out, please help point me in …

Member Avatar for foshan
0
213
Member Avatar for Vasthor

My friend and I tried to create a team of programmers for doing bunch of work, our main aim is the gaming sector (probably). It was said around the net that it was hard work. So, we decided to plan it from now. I got around 1-3 years(blurry because I'm …

Member Avatar for deceptikon
0
251
Member Avatar for Alex_20

Any good places to start learning Python? Websites/books/Youtube tutorials? Also any good editors, too?

Member Avatar for Alex_20
0
125
Member Avatar for brett.warren.1612

Hey, I tryed the first problem of the Euler project, but for some reason the code bellow is not give me the correct answer: def multiple_sum(multiple=3): x = 0 for n in range(0, 1000): if not (n % multiple): x += n return x print multiple_sum(5) + multiple_sum(3) It is …

Member Avatar for brett.warren.1612
0
116
Member Avatar for fatimaashena

i'm trying to input ligand with mol2 format in autodock but i get an error and a warrning warrning : {5moleculs in} , {D,ducument and ...} Traceback (most recent call last): File "/tmp/autodock/dist305/MGLToolsPckgs/MGLToolsPckgs/ViewerFramework/VF.py", line 685, in tryto result = apply( command, args, kw ) File "/tmp/autodock/dist305/MGLToolsPckgs/MGLToolsPckgs/AutoDockTools/autotorsCommands.py", line 481, in doit …

Member Avatar for rrashkin
0
796
Member Avatar for renierdbruyn

I have a function that does certain checks, if the the checks fail, it will add values to a dict, i.e: outstanding = {} sims = [_sim for _sim in self.context.sims if unicode(_sim.iccid)] # for sim in [_sim for _sim in self.context.sims if unicode(_sim.iccid)]: print sims count = len(sims) if …

0
131
Member Avatar for Mithun_1

I m trying to open another .py file into .py file.i have written code for display list one it added in database but for that i need to go in menubar and click on list menu. i want to open that list one recore added into database. Any suggesion.

Member Avatar for rrashkin
0
202
Member Avatar for Dineshchitta
Member Avatar for Gribouillis
0
271
Member Avatar for aokono
Member Avatar for SyxNM
0
125
Member Avatar for Wilever

I'm totall beginner, trying to learn python programming codes. So far, got series of python programming problems to solve. Here is one of them.; please I need help on how to write the program. "Write a program that displays a table of the Celsius temperatures 0 through 20 and their …

Member Avatar for Greg_4
0
16K

The End.