Sample Python Code to Print "Hello World!"

var = "Hello World!"
print(var)
Hello World!

Above you can see the output of the code.