Advertisement
dimkiriakos

Untitled

Oct 4th, 2021
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. PlatosPinaka = int(input("Πλάτος Πίνακα: "))
  2. PlatosKornizas = int(input("Πλάτος κορνίζας: "))
  3. XromaPinaka = input("χρώμα πίνακα: ")
  4. stiles = int(input("Στείλες: "))
  5. grammes = int(input("Γραμμες :"))
  6.  
  7.  
  8.  
  9. data = ""
  10. for i in range(stiles):
  11.     data += f"\t\t<td> -{i+1}- </td>\n"
  12.  
  13. rows = ""
  14. for i in range(grammes):
  15.     rows += f"\t<tr>\n{data}\t</tr>\n"
  16.  
  17. pinakas = f"""<table width="{PlatosPinaka}" border="{PlatosKornizas}" bgcolor="{XromaPinaka}">
  18. {rows}
  19. </table>
  20. """
  21.  
  22. print(pinakas)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement