Advertisement
dimkiriakos

Untitled

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