New Posts  All Forums:Forum Nav:

Weird pound sign?

post #1 of 5
Thread Starter 
http://learn-to-program.net/if_statement.htm

why is a pound sign there?
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 5
It's a comment.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #3 of 5
In python, everything that comes after a pound sign (per line) is a comment. E.g. a short description of what is going on in the code on that line.
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
post #4 of 5
Thread Starter 
Wait I read somewhere like a exclamanation point might affect it?
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 #5 of 5
The #! is used to define the location of the python interpreter on Unix based systems. It should always the first line of code. It looks like you don't know much about python or programming. You should probably refer to this if you want to learn python: http://docs.python.org/py3k/tutorial/
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