Created
August 3, 2021 03:01
-
-
Save bramses/b958457457a21ff2215de0ba34d75507 to your computer and use it in GitHub Desktop.
the cli test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* make a function that does basic addition */ | |
function add(a, b) { | |
return a + b; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' 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