| |
thread by: Florrianer |
last post Jun 7 '12 by: dwblas
def markbook_list():
names =
marks =
while True:
name = raw_input("Name: ")
if name == "exit":
break
|
thread by: Jayneil |
last post Jun 7 '12 by: WooDoo
The error message I get:
unable to create user config directory
C:\Users\Jayneil\.idlerc
Check path and permissions.
Exiting!
|
thread by: Dane R |
last post Jun 8 '12 by: Dane R
If you have a dict with a list how do you get the info from the list.
|
thread by: nick john |
last post Jun 9 '12 by: Jory R Ferrell
Why does this not work? Why does this not return "good im glad". Sorry i'm a beginner.
x = str(input("Hello how are you?"))
if x == "very good":
print("Good Im Glad To Hear That!")
else:
print("I'm Sorry!")
|
thread by: funso |
last post Jun 9 '12 by: WooDoo
I am just starting out. When I put this statement: "Hello World!" into a script and ran it on d terminal, this was what I got:
C:Python27\python.exe: can't find '-main-' module in 'hello.py', instead of giving me the content of the folder named hello.py. What could be the problem?
|
thread by: bratiskovci |
last post Jun 11 '12 by: 3dcampbell
1. How do I keep prompting the user for more dates until the user has indicated that he/she wishes to quit.
2. Computation of the day of the week MUST be moved to its own function.
3. How do I verify that the date entered is valid. For example, April only has 30 days so the user will not be allowed to enter April 31 as a valid date. See...
|
thread by: apple17 |
last post Jun 11 '12 by: Trolkar8
I have a game that I developed and it runs fine on my computer but now I need to distribute it. When I use pygame2exe, the generated exe gives an error saying it misses a mixer module.
How can I get this to work?
|
| |
thread by: Jory R Ferrell |
last post Jun 11 '12 by: Jory R Ferrell
I am using wxPython. I need to be able to add and remove panels/canvases on demand, but I don't know how to refresh the entire parent frame (the base starting window). I tried fooling with the Full_Repaint option, but got no where. The method I am using, to add and (hopefully) refresh the frame, Add_Canvas(), starts at line 50.
canvas_List = ...
|
thread by: tralynn |
last post Jun 12 '12 by: tralynn
hello,
I have a csv file that has 13 columns. Some columns are filled, some are blank. What I need to do is pull up the csv file, read the columns into a list or array and then put each column into its own variable that can be referenced in an email script that I've already written.
Here is my code so far where my output is all of my...
|
thread by: NunoMPG |
last post Jun 12 '12 by: NunoMPG
Hello all!
I'm trying to build a python script to create circles, place them randomly within specific limits and the most important part is that the algorithm must be able to detect any intersecting circles and if any is found, move them to another position.
This script is to be used with ABAQUS finite element simulation package to create a...
|
thread by: pystarter |
last post Jun 15 '12 by: bvdet
I am trying to write some code so it orders the list by the date in the substring.
I am trying to use 'sorted', or possibly .sort
Can anyone give me some pointers?
mylist=
|
thread by: Blankwall |
last post Jun 16 '12 by: Blankwall
Trying to learn programming. Im a complete newb. Im using the site learnpython thehardway. I try to set enviromental variables just like tjey say amd i always get python can not be found. Any suggestion
s on what to try? I really wanna learn but am getting very frustrated being unable to interface python with powershell.
|
thread by: Fizzics |
last post Jun 19 '12 by: Fizzics
I can't seem to figure this one out. I am trying to install some python bindings for IDL. I'd like to call my IDL scripts from my more native python. The bindings are called pyIDL.
It requires the Cython libraries, which I have installed. When I run the setup.py script here is what I get.
$ python setup.py install --prefix=/opt/python ...
|
thread by: sammelhem |
last post Jun 20 '12 by: sammelhem
Hi,
I am trying to run a python script file in ABAQUS 6.9-2 and I am having trouble with it. When I run the file in ABAQUS CAE using "run script " option it works fine. But when I run it in ABAQUS PDE I get the following error
*** Error - remote process did not start
Can some one please help me fix this problem
Thanks in Advance
Sameh
|
thread by: kantor3 |
last post Jun 28 '12 by: bvdet
since sets in python are unordered collection,a set does't show the items it contains in the same order they have added. is it however safe to assume that the items will be displayed always in the same order?? eg.
i create the following set
test = set
if i want to show the items in test
test
i may get the following output: set()
does...
|
| |
thread by: a2050ysj |
last post Jun 29 '12 by: dwblas
I have an excel file and I want to read each column and create separate lists for them. I want to then compare each element of each list with other corresponding lists I have.
Is there a way I can convert the columns into lists using python?
|
thread by: susieg |
last post Jul 4 '12 by: dwblas
Hi,
here is a code snippet that is supposed to calculate Value2 by multiplying Wfactor and Value1 for identical object ID's.
Unfortunately the line with "Value2 =" casts a function object is not iterable error. I am stumped on where it is coming from.
testDict = {}
for test in helps.getUniqueValues(fc,"ID"):
Value2 = ()
...
|
thread by: muralimunna |
last post Jul 5 '12 by: muralimunna
i had string like thiz:
PV_drivers_up_to_date::true
('name' 'Microsoft Windows Server 2008 R2 Standard |C:\\Windows|\\Device\\Harddisk0\\Partition2''distro' 'windows''major' '6''minor' '1''spmajor' '1''spminor' '0'
i want to print without '',\\ and :
please help me.
|
thread by: JohnTokyo |
last post Jul 5 '12 by: dwblas
Hi there, I'm learning python by myself and I've just come to big stop with my first project for a Hang/man. I need some help. Thank you.
Here's my code:
def get_secret():
initial = raw_input('enter string: ')
word = initial.lower()
print '\n'*60
return str(word)
|
thread by: Arton |
last post Jul 5 '12 by: dwblas
Hello,
I have a basic question. I would like to make running Arc.py several times with different input (R0.arg)and output (V0.art)
The idea is to repeat the command like this:
Arc.py R0.arg V0.art
Arc.py R1.arg V1.art
Arc.py R2.arg V2.art
Arc.py R3.arg V3.art
Arc.py R4.arg V4.art
|
thread by: Sara J |
last post Jul 5 '12 by: warnet
Hi
I currently use python 2.7 and i have a snippet of code that comes out different in two interpreters.
Edit: Would help to post my code ^^
from ctypes import *
msvcrt = cdll.msvcrt
message_string = "hello world!\n"
msvcrt.printf("Testing ctypes printf: {0}".format(message_string))
|
thread by: muralimunna |
last post Jul 9 '12 by: ariful alam
PV_drivers_version::((xenvbd 1.0boot) (xennet 4.0) (major 5) (minor 6) (micro 100) (build 47101))
i want o/p as:
PV_drivers_version::
(xenvbd 1.0boot)
(xennet 4.0)
(major 5)
like thiz
thanks in advance.......
|
thread by: ecorbett |
last post Jul 9 '12 by: ecorbett
I have a threaded C program that I want to launch using a Python GUI in a Unix environment. I want to be able to change the state of the GUI by gathering output from the C program.
For instance, this is output from my C program using printf:
Thread on tile 1: On
Thread on tile 2: OFF
Thread on tile 3: Disable
...
Thread on tile 61: ON
I...
|
| |
thread by: tuteinstein |
last post Jul 13 '12 by: tuteinstein
Hi I want to invert a 10x10 antisymmetric matrix around 40000 times. Is there a faster way to implement it than to use the in-built inverse function in numpy?
Thanks!
|
thread by: pradeepprthbn |
last post Jul 16 '12 by: pradeepprthbn
when i run the python code in controldesk 3.2.2 its working properly for sometime and then its give some the following error""Failed to completely update data for the connected variables"".I dont understand y this happenning.can anyone help me out??
|