Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 12-02-08   #1 (permalink)
RAM Fan
 
DjQurt's Avatar
 
amd nvidia

Join Date: Jul 2007
Location: Colorado
Posts: 2,144

Rep: 72 DjQurt is acknowledged by some
Unique Rep: 68
Folding Team Rank: 416
Trader Rating: 0
Default Help with python

okay i agreed to do this hott chicks homework for some college class and im screwed! she expects me to do her whole final which is making some lame math program for elementary kids, which what i have done so far no kid in 3rd grade is gonna be able to do lol. anyways, i have the first thirty questions done, now if the "kid" gets 22 or more questions right he gets the message "you pass great job!" else he gets "YOU FAIL!" now i want the program to continue onto the next level if the pass. how do i go about doing it?

the end code:

if answersright >=22:
print "Great you pass!"

else:
print "you fail! please try again!"

can i just continue on? or do i have to make a var. and then test the variable to see if they go on? and if they fail how do i restart the program to line 1?

i will gladly +rep to anyone that has an idea on how to do this, i accepted this task from this uber hott chick without even knowing python and now i have like a jumble of 500 lines of code but if i can make it work i shall be rewarded as she says
__________________
Quote:
Originally Posted by Diabolical999 View Post
Hmm, never heard of this "Lord Dirtbag" you speak of.


My zune
Visit my city!
Increase my industry

System: 10.192 marks
CPU
athlon 64 x2 3600+ 320x9.5
Motherboard
Foxconn A7DA-S 790gx
Memory
2x2gb Gskill PQ 1000
Graphics Card
Gigabyte 8800gt bios mod
Hard Drive
2x320gb Raid0
Sound Card
Onboard
Power Supply
500w rosewill
Case
Thermaltake SopranoRS
CPU cooling
S1283 W/ Kaze and OCZ freeze
GPU cooling
DuOrb + AS5
OS
Vista 64 bit
Monitor
neovo F-419
DjQurt is offline I fold for Overclock.net   Reply With Quote
Old 12-02-08   #2 (permalink)
4.0ghz
 
ericeod's Avatar
 
intel ati

Join Date: Mar 2007
Location: So Cal
Posts: 9,630

Rep: 1874 ericeod is a starericeod is a starericeod is a starericeod is a starericeod is a starericeod is a starericeod is a starericeod is a starericeod is a starericeod is a starericeod is a star
Unique Rep: 1015
Trader Rating: 29
Default

Sounds like you are being used pretty bad. Tell her to do it herself...


Sorry I cant help more. But I think the advice I just gave is the best for you to consider.
__________________
Quote:
Originally Posted by DuckieHo View Post
Benchmarking is so boring......
eVGA 680i Overclocking guide .......... ASUS P5E/Maximus Thread ............... 4.0GHz CPU-Z


System: My System
CPU
Q6700 3.9GHz w/1.512v vcore
Motherboard
Rampage Formula (x48)
Memory
4x2Gb DDR2 G.Skill F2-8500CL5D 1066
Graphics Card
2 Visiontek 3870 in CF
Hard Drive
WD640AAKS RAID 0 & WD250KS storage drive
Sound Card
X-Fi Platinum
Power Supply
Cooler master 850W
Case
RocketFish
CPU cooling
D-Tek Fuzion v2/655/120.3
OS
Vista 64 Ultimate SP1
Monitor
Samsung 2253BW 22"
ericeod is online now Overclocked Account   Reply With Quote
Old 12-02-08   #3 (permalink)
Intel Overclocker
 
Armadi110's Avatar
 
intel nvidia

Join Date: Feb 2007
Location: Lloydminster, AB
Posts: 1,238

Rep: 124 Armadi110 is acknowledged by manyArmadi110 is acknowledged by many
Unique Rep: 106
Trader Rating: 0
Default

Quote:
Originally Posted by DjQurt View Post
but if i can make it work i shall be rewarded as she says
nice.....

BTW, i hope this test involves some multi-variable calculus, just to make the kids feel like *******
__________________
The world rotates to the ultra heavy beat!

Xfire | My OCN Wallpaper :] | CAD Renders | Geometry Wars Thread | Gallery

System: Rig of Defeat:Source
CPU
Q6600 G0 @ 2.9Ghz (1.25V) 32'C/55'C
Motherboard
EVGA nforce680i SLI (A1)
Memory
4x 1Gb Crucial Ballistix Tracers (PC2 6400) 800mhz
Graphics Card
BFG 8800GT OC 512mb Edition (625/900)
Hard Drive
1.5Tb Total (WD + Maxtor)
Sound Card
X-Fi XtremeGamer -> Logitech X-540's
Power Supply
Silverstone Zeus 650W
Case
Modified Thermaltake Armor
CPU cooling
Black TRUE + Ultra Kaze 120mm
GPU cooling
TT Duorb
OS
Vista Home Premium 64bit
Monitor
Samsung T240 HD/ Sony Bravia 32" HDTV/ Samsung 932
Armadi110 is offline   Reply With Quote
Old 12-02-08   #4 (permalink)
RAM Fan
 
DjQurt's Avatar
 
amd nvidia

Join Date: Jul 2007
Location: Colorado
Posts: 2,144

Rep: 72 DjQurt is acknowledged by some
Unique Rep: 68
Folding Team Rank: 416
Trader Rating: 0
Default

well her thing is due thursday and im about half done with it, this was a great learning exercise. i guess ill just throw it together and hand it to her
__________________
Quote:
Originally Posted by Diabolical999 View Post
Hmm, never heard of this "Lord Dirtbag" you speak of.


My zune
Visit my city!
Increase my industry

System: 10.192 marks
CPU
athlon 64 x2 3600+ 320x9.5
Motherboard
Foxconn A7DA-S 790gx
Memory
2x2gb Gskill PQ 1000
Graphics Card
Gigabyte 8800gt bios mod
Hard Drive
2x320gb Raid0
Sound Card
Onboard
Power Supply
500w rosewill
Case
Thermaltake SopranoRS
CPU cooling
S1283 W/ Kaze and OCZ freeze
GPU cooling
DuOrb + AS5
OS
Vista 64 bit
Monitor
neovo F-419
DjQurt is offline I fold for Overclock.net   Reply With Quote
Old 12-02-08   #5 (permalink)
*cough* Stock *cough*
 
Mikecdm's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: Arlington, TX
Posts: 534

Rep: 66 Mikecdm is acknowledged by some
Unique Rep: 60
Folding Team Rank: 311
Trader Rating: 9
Default

I bet you'll be rewarded with a big thank you. Sorry, I can't help. If I were in the situation and actually accepted to do this she would have to waste here time sitting next to you watching you work. There would be no way that I'd do this on my free time, while she is probably having a good time and you're stuck doing her work. She'd have to put some time in at minimum for me to do this. That way you'd have a better idea if she is going to put out or not.
__________________
System: Copycat
CPU
Q6600
Motherboard
Abit IP-35 Pro
Memory
G-skill 2x2gb DDR2 1000
Graphics Card
EvGa GTX260 c216
Hard Drive
Seagate 7200.10 320gb
Power Supply
Corsair 650TX
Case
Rocketfish
CPU cooling
Apogee GTZ, MCP655, MCR-320,
OS
Vista Ultimate 64
Monitor
Viewsonic VP230mb
Mikecdm is offline I fold for Overclock.net   Reply With Quote
Old 12-02-08   #6 (permalink)
Linux Lobbyist
 
error10's Avatar
 
intel nvidia

Join Date: Sep 2008
Location: Manchester, New Hampshire
Posts: 7,066
Blog Entries: 2

Rep: 768 error10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famous
Unique Rep: 485
Folding Team Rank: 40
Hardware Reviews: 1
Trader Rating: 17
Default

Next time, get ... rewarded ... first.

System: Underground
CPU
Core i7 920
Motherboard
EVGA X58
Memory
3x2GB Corsair Dominator DDR3-1600
Graphics Card
EVGA 9800 GT Superclocked 512MB
Hard Drive
WD1001FALS
Sound Card
Intel ICH10 HD Audio
Power Supply
OCZ StealthXStream 600W
Case
Thermaltake Armor VA8003BWS
CPU cooling
TRUE Lapped + Scythe Slip Stream 1900
GPU cooling
Stock
OS
Fedora 10 x86_64
Monitor
HP w19b
error10 is offline I fold for Overclock.net error10's Gallery   Reply With Quote
Old 12-02-08   #7 (permalink)
Programmer
 
nathris's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Google says France
Posts: 3,847

Rep: 244 nathris is acknowledged by manynathris is acknowledged by manynathris is acknowledged by many
Unique Rep: 188
Hardware Reviews: 1
Trader Rating: 0
Default

Put the whole thing in "while !pass:"

and then


if answersright >=22:
print "Great you pass!"
pass = true
__________________
Saving the economy, one piece of hardware at a time.

System: No more 650i!
CPU
e5200 (3.4GHz, 1.34V)
Motherboard
ASUS P5K-E Wifi/AP
Memory
4GB G.SKILL DDR2-8000 @ 511MHz 5-5-5-15
Graphics Card
EVGA 9800GTX+ SC+
Hard Drive
250GB ATA + 320GB SATA + 80GB ATA
Sound Card
X-Fi Fatal1ty
Power Supply
Antec Earthwatts 500W
Case
Antec Sonata III
CPU cooling
Xigmatek HDT-S1283
OS
Ubuntu Hardy/Vista Ultimate x64
Monitor
Samsung 2443BW 24"
nathris is offline   Reply With Quote
Old 12-02-08   #8 (permalink)
Linux Lobbyist
 
error10's Avatar
 
intel nvidia

Join Date: Sep 2008
Location: Manchester, New Hampshire
Posts: 7,066
Blog Entries: 2

Rep: 768 error10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famouserror10 is becoming famous
Unique Rep: 485
Folding Team Rank: 40
Hardware Reviews: 1
Trader Rating: 17
Default

pass is a reserved word in Python; you may have to name the variable something else.

System: Underground
CPU
Core i7 920
Motherboard
EVGA X58
Memory
3x2GB Corsair Dominator DDR3-1600
Graphics Card
EVGA 9800 GT Superclocked 512MB
Hard Drive
WD1001FALS
Sound Card
Intel ICH10 HD Audio
Power Supply
OCZ StealthXStream 600W
Case
Thermaltake Armor VA8003BWS
CPU cooling
TRUE Lapped + Scythe Slip Stream 1900
GPU cooling
Stock
OS
Fedora 10 x86_64
Monitor
HP w19b
error10 is offline I fold for Overclock.net error10's Gallery   Reply With Quote
Old 12-02-08   #9 (permalink)
RAM Fan
 
DjQurt's Avatar
 
amd nvidia

Join Date: Jul 2007
Location: Colorado
Posts: 2,144

Rep: 72 DjQurt is acknowledged by some
Unique Rep: 68
Folding Team Rank: 416
Trader Rating: 0
Default

Well i finished it and i got nicely rewarded today im reminded of the song Gimmie head ho by E-40 when i think back on my "thank you". well it only took me like 2 hours to do her whole thing so it wasnt to much of a waste of time and it got me to learn alot about Python in the process! i think ill continue on practicing it so i can get better.
__________________
Quote:
Originally Posted by Diabolical999 View Post
Hmm, never heard of this "Lord Dirtbag" you speak of.


My zune
Visit my city!
Increase my industry

System: 10.192 marks
CPU
athlon 64 x2 3600+ 320x9.5
Motherboard
Foxconn A7DA-S 790gx
Memory
2x2gb Gskill PQ 1000
Graphics Card
Gigabyte 8800gt bios mod
Hard Drive
2x320gb Raid0
Sound Card
Onboard
Power Supply
500w rosewill
Case
Thermaltake SopranoRS
CPU cooling
S1283 W/ Kaze and OCZ freeze
GPU cooling
DuOrb + AS5
OS
Vista 64 bit
Monitor
neovo F-419
DjQurt is offline I fold for Overclock.net   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 06:14 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.42286 seconds with 8 queries