On 3/22/2012 2:45 PM, Khalid Al-Ghamdi wrote:
Hi All,
I work in in academic testing environment and we employ expensive
machines to scan answer sheets (the ones where you blacken the letter
of the correct multiple choice answer). Anyway, I was thinking if
there was a way we could use regular
On 3/22/2012 2:45 PM, Khalid Al-Ghamdi wrote:
Hi All,
I work in in academic testing environment and we employ expensive
machines to scan answer sheets (the ones where you blacken the letter
of the correct multiple choice answer). Anyway, I was thinking if
there was a way we could use regular
Please use ReplyAll when responding to posts, Thanks.
i have tried like this way but i want to read all integers and operators in
one string. how can i do that.
>
>
>As described below.
>
>
>expr = raw_input("Type an expression: ")
>
>
>Now you have the expression as a string in expr.
>You just
On 22/03/12 22:14, Sukhpreet Sdhu wrote:
i want to write a program that reads simple arithematic expressions and
calculates the result.
OK, there are many ways to do this but they pretty much
fall into three categories:
1) read the string and exec() it - easy but very
risky from a security
On 22/03/2012 22:14, Sukhpreet Sdhu wrote:
i want to write a program that reads simple arithematic epressions and
calculates the result.
for example input "1*3+2" should generate "5'" as result
___
Tutor maillist - Tutor@python.org
To unsubscribe
What have you tried? What so u intend to achieve? There are math functions in
python already; so, are you planning to use the functions in the math class for
your program or you want to write yours separately? The later would be a little
disturbing in my candid opinion.
Regards.
Sent from my
>i want to write a program that reads simple arithematic epressions and
>calculates the result.
>for example input "1*3+2" should generate "5'" as result
So what is stopping you?
Snark aside, this can get really complicated unless you make some well
defined rules. This becomes difficult especiall
i want to write a program that reads simple arithematic epressions and
calculates the result.
for example input "1*3+2" should generate "5'" as result___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.pytho
On 03/22/2012 06:01 PM, Sukhpreet Sdhu wrote:
i want to sort the list formed by two variable taken as raw_input().i have
written following code;
a=raw_input()
b=raw_input()
c=a+b
list=c.split()
how i can sort the list formed
Do a search on python.org for list + sort. First match I got:
http:
On 22/03/12 19:59, ken brockman wrote:
PS maybe time to find a new hobby. I hear that knitting is very relaxing
and no heavy mental lifting.
Nah, I tried that once. programming is much easier! :-)
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
i want to sort the list formed by two variable taken as raw_input().i have
written following code;
a=raw_input()
b=raw_input()
c=a+b
list=c.split()
how i can sort the list formed___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscriptio
I was not updating the list from the recursive call.
> merge_sort(left,'left')
> merge_sort(right,'right')
left = merge_sort(left,'left')
right = merge_sort(right,'right')
-A
-Abhi
On Thu, Mar 22, 2012 at 1:40 PM, Abhishek Pratap wrote:
> I am imlpementing a merge sort algo for clari
I am imlpementing a merge sort algo for clarity purposes but my
program is giving me weird answers. Sometimes it is able to sort and
other times it does funky things. Help appreciated
from random import *
from numpy import *
nums = [random.randint(100) for num in range(4)]
#nums = [3,7,2,10]
de
> python fibo.py
> the code in the module will be executed, just as if you imported it, but
> with the __name__ set to "__main__". That means that by adding this code at
> the end of your module:
>
> if __name__ == "__main__":
> import sys
> fib(int(sys.argv[1]))
> you can make the file u
Alan, no need to respond to that last missive of mine. I no sooner had hit the
send key and reopened the apps in question then the answer hit me like a small
mallet in the back of my head. Obviously, what makes the additional code at
the bottom of the secon
On 22/03/12 09:57, ken brockman wrote:
>> PS Another odd bit, was on the python docs page. It had said that using
>> import File_name, without the .py would import it, but not run it. Seems
>> a glaring oversight not to have mentioned, what would have made it
Hi All,
I work in in academic testing environment and we employ expensive machines
to scan answer sheets (the ones where you blacken the letter of the correct
multiple choice answer). Anyway, I was thinking if there was a way we could
use regular old scanners to scan the sheets than analyze the im
On 22/03/12 09:57, ken brockman wrote:
PS Another odd bit, was on the python docs page. It had said that using
import File_name, without the .py would import it, but not run it. Seems
a glaring oversight not to have mentioned, what would have made it run.
Actually it does run it when you impor
M
On 22/03/12 03:47, ken brockman wrote:
>> None of which had gotten the Qt window to open.
>> Yet when I run it directly, on it's own, it open's
>> and the Qt window is displayed.
>My guess is that there is an if __name__... clause
>at the bottom with some code that doesn't get
>executed when yo
On 22/03/12 03:47, ken brockman wrote:
None of which had gotten the Qt window to open.
> Yet when I run it directly, on it's own, it open's
> and the Qt window is displayed.
My guess is that there is an if __name__... clause
at the bottom with some code that doesn't get
executed when you impor
On Wed, 21 Mar 2012, Abhishek Pratap wrote:
Hi Guys
I am in the process of perl to python transition for
good.
Welcome!
1. stitch pipelines : I want python to act as a glue
allowing me to run various linux shell based programs.
If needed wait for a program to finish and then move on,
logs if
21 matches
Mail list logo