*** Hidden text: cannot be quoted. ***
to Python Code Pad
# Code is automatically saved on edit
# Use it to run Python 3 code
# Print to the console
print('Python is awesome')
# Write functions
def greeting():
return 'Hello'
# Call functions
print(greeting())
# Import from Standard Library
import datetime
now = datetime.datetime.now()
print(now)
# Create and work with classes
class Greeting:
def greet(self, name):
return 'Hello ' + developer
print(Greeting().greet('kut brim'))
# Have fun coding in Python