title: write a program function to stop a loop exactly in 5 seconds
body: <p>instructions
  1.import time module
  2.initialize a time as an integer
  3.using function create an infinite loop
  4.loop should stop for the input given by the user</p>
  <p>hints:
  1.use function to pass input
  2.change input to float
  3.create infinite loop
  break loop after input seconds</p>
  <p>i am new to python ,
  this coding task in learning website like programiz,w3schoolsetc.,(i dont want to share the details)</p>
  <p>in online console when i print what the input from server side of console it exited with error status 1.EOFError</p>
  <p>my question is how can i write a code for above instructions if there is no input.
  maybe i misunderstand the instruction
  please help me if the instructions are correct give me solutions</p>