I have used Python and PHP a lot, but just out of curiosity, is there a version of Python that uses a similar paradigm to PHP for dynamic creation of html pages, i.e. like this:
<html>
<body>
<?py # similar to <?php ... ?>
for i in range(10):
print '<div>Hello%i</div>' % i
?>
</body>
</html>
?
Note 1: I'm not speaking about Django, Flask, Bottle, Twisted, etc. that don't use such syntax.
Note 2: The suggested code would be like this in PHP:
<html>
<body>
<?php
for ($i = 0; $i < 10; $i++)
{
echo '<div>Hello' . $i . '</div>';
}
?>
</body>
</html>