I have a text file named "poem1". I want you to show me how to read the file and print each line of the file out using Python code. 
system
mere paas ek text file he jiskaa naam "POEM1" he.main chahta hum ki aap mujhe dikhaae ki kaise fil ko padhein or paythan code kaa upyog karke fil kii prayek pankti ko print karen.
user
nishchit rup se.yah file padhane ke liye paythan ke antarnihit fnction `open (" poem1.txt ")` kaa upyog karke puraa kiya ja saktaa he.fil ko padhane ke baad, aap kavita 1.txt fil se prayek pankti kii suchi waapas karne ke liye `readlines ()` vidhi kaa upyog kar sakate hai.vahaan se, aap file kii prayek pankti ke madhyam se punrariti karne ke liye loop ke liye e kaa upyog kar sakate hai or loop ke bheetar parinaam print kar sakate hai.yahan ek udhaaharan he:

`` `paythan
open ('poem1.txt') ke saath poem_txt ke rup main:
  POEM_TXT.READLINES () main line ke liye:
    print (pankti)
`` `

code kii keval kuch panktiyon ke saath, poem1.txt se prayek pankti mudrit he.yadi aapke koi anya prashn hai, to kripaya mujhe bataaen.
assistant
<|system|>
</s>
<|user|>
mere paas ek text file he jiskaa naam "POEM1" he.main chahta hum ki aap mujhe dikhaae ki kaise fil ko padhein or paythan code kaa upyog karke fil kii prayek pankti ko print karen.</s>
<|assistant|>
nishchit rup se.yah file padhane ke liye paythan ke antarnihit fnction `open (" poem1.txt ")` kaa upyog karke puraa kiya ja saktaa he.fil ko padhane ke baad, aap kavita 1.txt fil se prayek pankti kii suchi waapas karne ke liye `readlines ()` vidhi kaa upyog kar sakate hai.vahaan se, aap file kii prayek pankti ke madhyam se punrariti karne ke liye loop ke liye e kaa upyog kar sakate hai or loop ke bheetar parinaam print kar sakate hai.yahan ek udhaaharan he:

`` `paythan
open ('poem1.txt') ke saath poem_txt ke rup main:
  POEM_TXT.READLINES () main line ke liye:
    print (pankti)
`` `

code kii keval kuch panktiyon ke saath, poem1.txt se prayek pankti mudrit he.yadi aapke koi anya prashn hai, to kripaya mujhe bataaen.</s>
