Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PlatosPinaka = int(input("Πλάτος Πίνακα: "))
- PlatosKornizas = int(input("Πλάτος κορνίζας: "))
- XromaPinaka = input("χρώμα πίνακα: ")
- stiles = int(input("Στείλες: "))
- grammes = int(input("Γραμμες :"))
- data = ""
- for i in range(stiles):
- data += f"\t\t<td> -{i+1}- </td>\n"
- rows = ""
- for i in range(grammes):
- rows += f"\t<tr>\n{data}\t</tr>\n"
- pinakas = f"""<table width="{PlatosPinaka}" border="{PlatosKornizas}" bgcolor="{XromaPinaka}">
- {rows}
- </table>
- """
- print(pinakas)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement