15,181 Topics
| |
Hi, I didn't know where to place this thread :) Any recommendations for an IDE app to save snippets of code within the program, I looked online, and there are many options, too hard to pick ! :) | |
I am trying to toggle between the two toolbars and couldn't do it with the code below. Not sure where the problem is.... Any ideas are very welcome!!! Here is the code: `Inline Code Example Here` import wx import wx.grid import wx.html import wx.aui from time import * import cStringIO … | |
Hi guys i have been making this solor system simulator in python. I have added four planets and now I am trying to make it look a little nicer. What i am have trouble with is setting the background colour to be black (to give more spacey feel). But what … | |
Hi there, I am interested in phone selection by using if..else statement. so after viewing the phone specification we can select the phone and purchase that. so do you have python sample codes for that? a rough idea is enough. Thank you. and python is really interesting. | |
Hi Friends, Please share your's experience about best supporting programming language for BigData & Hadoop. I'm also doing some research about this topic plz contribute your idea & experience for this topic. Regards, Rupesh | |
Do you know if I can change of line in a list of lists? tareas = [] > otraTarea = [tarea,year,month,day, hour, minute, second, microsecond,str(cuando),cuando] `+'\n'+ []`(this is what i have tried) #I have tried to concatenate two lists, but the program returns a message, in which it's explained that … | |
I got this code from the internet. import random #create a sequence of words to choose from name = ("stephen","bob", "robert","craig") # pick one word randomly from the sequence word = random.choice(name) #create a variabe to use later to see if the guess is correct correct = word # create … | |
Hello there, I am currently working on a indepedendent project and I am realtively new to Python. Please note that this question revolves around Python version 3. But if you have a answer in Python 2 just write it down and tell me it is in Python 2 thanks. What … | |
Hello, I am new to python and I am trying to do this task but it looks that I am missing some things which is not visible to me can any body help me see those mistakes I am making and suggest how I should restracture my code if needed? … | |
Hello good people I am working on a caeser cipher program for class. However, I ran into a problem with my outputs. Up to a certain point for example: two('y', 'z') Would give a '\x92' output instead of a 'x' output. Currently this is my code so far: def chartonum(ch): … | |
Hi, I am new to wxpython and trying to develop a small GUI interface (shown below). User selects a python script from "Browse run script" and when he/she hits the button "Execute RunScript", the script should execute via aardvark i2c interface. But I am not sure why it's not getting … | |
Here is simple text file example for beginners, using try..except for reading old content as it may not yet exist. | |
Hello, I am relatively new to python and I am tryin to create, or better yet, find a text editor/box which displays simple html text/formatting and allows me to modify it (without having to deal with the html directly). For example in the text box you might find this: 1. … | |
i use a string str1= { 0xFEFE 0x0111 0x00 }, { 0xFEFE 0x0112 0x01 }, { 0xFEFE 0x0113 0x01 },{ 0xFEFE 0x0114 0x00 } need to find and seperate the substrings that end with 0x00 in one list and the substrings that end with 0x01 in another list. could anyone … | |
| Hello, Where can I download Python 3.4.0 for Linux ? On the official website of Python I can find releases only for Windows and Mac OS. Thanks for your help. |
Hi, I was working on a solution to problem ten of Project Euler, which states: > The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. > Find the sum of all the primes below two million. I've got code that solves this … | |
Hi, I have a raspberry pi and was wondering if it was possible to detect button presses from a webpage in python. I have a robot arm and can control it using this code: #!/usr/bin/env python #ROBOT ARM CONTROL PROGRAM # MoveArm(1,[0,1,0]) @Rotate base anti-clockwise # MoveArm(1,[0,2,0]) @Rotate base clockwise … | |
I'm quite new to Python, and am trying to make a simple unit converter - was hoping if anyone could tell me where i'm going wrong? This is the script as it stands: input('Would you like to convert centimeters to inches (a), or inches to centimeters (b)?\ntype a or b: … | |
Hello, So I have been trying to produce an algorithm for unsymmetric matrices which finds the smallest magnitude eigen value. I have found this: ![cfafcf24b5563ebb8aad4395c3c90ff0](/attachments/large/2/cfafcf24b5563ebb8aad4395c3c90ff0.png "cfafcf24b5563ebb8aad4395c3c90ff0") ![cfafcf24b5563ebb8aad4395c3c90ff0](/attachments/small/2/cfafcf24b5563ebb8aad4395c3c90ff0.png) However, I still don't know how to implement it in python. Can someone help out or provide psudocode/code ? | |
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 … | |
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 … | |
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. … | |
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 :) | |
HI Where can I download python 2.7.6 or 2.7.3 for 32bit windows? | |
| 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 |
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 … | |
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 … | |
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 … | |
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. | |
| I want to start game developing but I need help choosing what programming language to learn. I already tryed Lua,Java,C++ but not Rudy and Python... So here is my question, I need the pros and cons on Ruby and Python and your recommendation. I need something I feel comfortable with. |
The End.