CSV Files The CSV (Comma Separated Values) is a special text file format in which rows of
data are present and the individual data elements are separated by commas.
The csv files have the extension .csv
Example for data contained in csv file
Raghu,23,100 110
Tisha,45,230
Yatin,67,90
https://teachcomputerscience.com/python-resources/files/
#f=open("story.txt","x")
f=open("story.txt","w")
f.write("I Love Python!")
#f=open("story.txt","r")
#print(f. read())
f=open("story.txt","a")
f.write("and its easy to learn.")
f=open("story.txt","r")
print(f. read())
#import os
#os.remove("story.txt")
Meaningful Variables: In high-level programming language we can use clear and meaningful
variable names.
Example: radius = 5
area = 3.14 * radius * radius
Comments: Add brief comments to explain complex sections or clarify intentions.
Example:
height = 5
width=5
# area calculation of rectangle
area = height* width
Whitespace Usage: Proper spacing enhances readability and clarity in code.
Example:
a=7
b=3
If a>b:
print(“a is greater number”)
HTML table with example code-different types of HTML lists - ordered lists and unordered lists
HTML table with example code-different types of HTML lists - ordered lists and unordered lists
HTML table with example code-different types of HTML lists - ordered lists and unordered lists
HTML table with example code-different types of HTML lists - ordered lists and unordered lists

HTML table with example code-different types of HTML lists - ordered lists and unordered lists

  • 29.
    CSV Files TheCSV (Comma Separated Values) is a special text file format in which rows of data are present and the individual data elements are separated by commas. The csv files have the extension .csv Example for data contained in csv file Raghu,23,100 110 Tisha,45,230 Yatin,67,90
  • 31.
    https://teachcomputerscience.com/python-resources/files/ #f=open("story.txt","x") f=open("story.txt","w") f.write("I Love Python!") #f=open("story.txt","r") #print(f.read()) f=open("story.txt","a") f.write("and its easy to learn.") f=open("story.txt","r") print(f. read()) #import os #os.remove("story.txt")
  • 40.
    Meaningful Variables: Inhigh-level programming language we can use clear and meaningful variable names. Example: radius = 5 area = 3.14 * radius * radius Comments: Add brief comments to explain complex sections or clarify intentions. Example: height = 5 width=5 # area calculation of rectangle area = height* width Whitespace Usage: Proper spacing enhances readability and clarity in code. Example: a=7 b=3 If a>b: print(“a is greater number”)