Code viewer for World: New World
 
// If we have an element with id="ab-python-console" then 'print' appends to it.
// If such an element does not exist, 'print' writes to the console.

// choose one of:
// <script type="py"> 
// <script type="mpy"> 


document.write ( `
 
<div id="ab-python-console"  style='padding:30' ></div>
  
 
<script type="mpy">     

print("Hello World")

print ("<h1> First line of 'print' output </h1>")
print ("<p style='color:green'><b> Second line of 'print' output </b></p>") 

</script>


` );