Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Hi guys just a basic python question?
New Posts  All Forums:Forum Nav:

Hi guys just a basic python question?

post #1 of 4
Thread Starter 
How do you make python as like?
What is 7 + 5?
Proud Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-750 Lynnfield 3.66GHz ASUS P7P55-M LGA 1156 XFX HD 5670 G.SKILL Ripjaws Series 4GB DDR3 1600 
Hard DriveOptical DriveOSPower
Seagate 1.5 TB 7200 RPM ASUS 2MB Cache Windows 7 64-bit Professional OCZ StealthXStream 700W 
Case
NZXT LEXA S LEXS 
  hide details  
Reply
Proud Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-750 Lynnfield 3.66GHz ASUS P7P55-M LGA 1156 XFX HD 5670 G.SKILL Ripjaws Series 4GB DDR3 1600 
Hard DriveOptical DriveOSPower
Seagate 1.5 TB 7200 RPM ASUS 2MB Cache Windows 7 64-bit Professional OCZ StealthXStream 700W 
Case
NZXT LEXA S LEXS 
  hide details  
Reply
post #2 of 4
As in,

x = 7 + 5 ENTER
print x ENTER?
I Love Cheese
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600k @ 3.4 Asus P8P67 Basic XFX 5970 2 gig Black Edition 2x 4 gig DDR 1600 G-Skill 
Hard DriveOSMonitorPower
2x500 gig WD Vista Ultimate 64-bit Dual 25" Hannspree LCD CM 750 Watt 
CaseMouse
Rosewill THOR Logitech Trackball 
  hide details  
Reply
I Love Cheese
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600k @ 3.4 Asus P8P67 Basic XFX 5970 2 gig Black Edition 2x 4 gig DDR 1600 G-Skill 
Hard DriveOSMonitorPower
2x500 gig WD Vista Ultimate 64-bit Dual 25" Hannspree LCD CM 750 Watt 
CaseMouse
Rosewill THOR Logitech Trackball 
  hide details  
Reply
post #3 of 4
Thread Starter 
Quote:
Originally Posted by joemaniaci View Post
As in,

x = 7 + 5 ENTER
print x ENTER?
How do you make it say that?
Like when the program is running you want it to say:

What is 7 +5?
Enter your answer here:
Proud Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-750 Lynnfield 3.66GHz ASUS P7P55-M LGA 1156 XFX HD 5670 G.SKILL Ripjaws Series 4GB DDR3 1600 
Hard DriveOptical DriveOSPower
Seagate 1.5 TB 7200 RPM ASUS 2MB Cache Windows 7 64-bit Professional OCZ StealthXStream 700W 
Case
NZXT LEXA S LEXS 
  hide details  
Reply
Proud Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-750 Lynnfield 3.66GHz ASUS P7P55-M LGA 1156 XFX HD 5670 G.SKILL Ripjaws Series 4GB DDR3 1600 
Hard DriveOptical DriveOSPower
Seagate 1.5 TB 7200 RPM ASUS 2MB Cache Windows 7 64-bit Professional OCZ StealthXStream 700W 
Case
NZXT LEXA S LEXS 
  hide details  
Reply
post #4 of 4
Quote:
What is 7 +5?
Enter your answer here:
print "What is 7 + 5?\
"
print "Enter your answer here: "
x = int(raw_input("Please enter an integer: "))
if x == 12:
print "Correct"
else:
print "Incorrect"
Viking
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5 2500K @ 4.8 GHz 1.45V P8Z68-V GEN3 [2x] EVGA GeForce GTX 570 SLI [2x] Kingston HyperX 4GB 1600MHz 
Hard DriveHard DriveCoolingCooling
Crucial M4 128GB [2x] WD 320GB XSPC Single Bay Reservoir Swiftech MCP655 
CoolingCoolingOSPower
XSPC Raystorm XSPC EX240 Windows 7 Pro 64-bit Corsair HX850 
Case
Corsair Obsidian 650D 
  hide details  
Reply
Viking
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5 2500K @ 4.8 GHz 1.45V P8Z68-V GEN3 [2x] EVGA GeForce GTX 570 SLI [2x] Kingston HyperX 4GB 1600MHz 
Hard DriveHard DriveCoolingCooling
Crucial M4 128GB [2x] WD 320GB XSPC Single Bay Reservoir Swiftech MCP655 
CoolingCoolingOSPower
XSPC Raystorm XSPC EX240 Windows 7 Pro 64-bit Corsair HX850 
Case
Corsair Obsidian 650D 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Hi guys just a basic python question?