CS 111 Lecture Notes - Lecture 3: Decimal Mark
Document Summary
Print hello world print ( hello world ) # same thing as hello world . # marks comments, which are important when others look at our programs. # comments for blocks of code are good. When programming, program style is important: style makes the program easier for another person to read/understand. Comments descriptions written within the program statements that add meaning to the program. Programs normally have a file heading comment that describes the overall use of the file, the author, the date it was written (started), modifications made over time, etc. Each function normally will have a function comment. Groups of statements will normally have some comments to describe particular usage of these statements. Blank lines separate different parts of the program. Meaningful variable names name the variables something that adds meaning to the program. Single character variables should only be used for loop counters.