10 Answers
+ 10
AJ/AY apart from back end development, python can be used in the web code though you'll have to separate the codes using special tags(<% %>)
Let's say you want to print the current date, you'll have to mix the two codes;
<% import datetime
print datetime.date.today().strftime("%d:%m:%y")
%>
When you run this code in the browser, You'll notice that the code inside the <% and %> tags is ordinary Python code, in which you can import modules, create and instanciate classes, use variables, read or write to the file system, etc.
+ 2
No you can't apply python in HTML because python is programming language which is used in back-end and HTML is a markup language which is used as frontend which displays data on browser.
+ 2
You can make some small codes like addition of 3 number, find the odd and even numbers between 1 and 10 or between 20 and 30 etc.
+ 1
Thanks
+ 1
Welcome
+ 1
Yes, you can
+ 1
There is Jinja2 and django template that can be used for the template engine, it is a modeling language that interacts between the html template and the Python code
+ 1
It is possible to use python instead of javascript in HTML. This is possible using Brython. I've actually not tried it and a friend recommended it. Kindly look it up
0
Yes, because python is also use in web development some time but it is not safe