title: how can i open a file which is in a zip file
body: <p>I want to open a html file and that html file is in a zip file(both name is same) and i'm trying to open that html file.</p>
  <pre><code>old_file = input(&quot;DRAG:&quot;) #dir C:\Users\GG\PycharmProjects\pythonProject\f1dbef77-342b-4026-85d8-7f30fe691a63_f.zip        
  file_parts = old_file.split(&quot;.&quot;) #[C:\Users\GG\PycharmProjects\pythonProject\f1dbef77-342b-4026-85d8-7f30fe691a63_f] [zip]        
  first= file_parts[0]
  direcs = first.split(&quot;\\&quot;)
  
  file_itself = direcs[-1]  # the file name that i need to use
  last = file_parts[1]
  
  
  file = open(f'{first}.zip\\{file_itself}.html', encoding=&quot;UTF-8&quot;).read()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/TvgLe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TvgLe.png" alt="enter image description here" /></a></p>