O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
fname=input("Enter the file name : ") fp=open(fname,"r") data=fp.readlines() print("Last Line : ",data[-1]) fp.close()
▶ Run Code
🖥 Output: