Source Code to HTML Generator



PythonToHtml

Paste the Python code below to generate the corresponding HTML   Copy the text from the following textarea and paste where you want to display the generated HTML
Div Wrapper
Pre Wrapper

PythonToHtml Output

""" Python To Html(PythonToHtml/Python2Html) Online Converter Test Program.
 Paste your python code & click PythonToHtml Button to generate formatted HTML.
"""

#!/usr/bin/python
class Daily(object):
     def __init__(self, employee, salary):
         self.employee = employee
         self.salary = salary 
     def __str__(self): 
         return "Employee: %i, Salary: %i" % (self.employee, self.salary) 

# Main Method

if __name__ == "__main__":
     daily1 = Daily(1,1000)
     print(daily1)