Skip to content

Instantly share code, notes, and snippets.

@bramses
Created August 3, 2021 03:01
Show Gist options
  • Save bramses/b958457457a21ff2215de0ba34d75507 to your computer and use it in GitHub Desktop.
Save bramses/b958457457a21ff2215de0ba34d75507 to your computer and use it in GitHub Desktop.
the cli test
/* make a function that does basic addition */
function add(a, b) {
return a + b;
}
<!-- make a header -->
<h1>
<a href="http://www.w3.org/"><img border="0" src="http://www.w3.org/Icons/w3c_home" alt="W3C"></a>
</h1>
<!-- make it red -->
<p style="color: red">
<strong>This is red text</strong>
</p>
''' create a person class '''
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def myfunc(self):
print("Hello my name is " + self.name)
p1 = Person("John", 36)
p1.myfunc()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment