Run ruby hello_world.rb or python hello_world.py to print Hello World
Last active
October 6, 2020 15:03
-
-
Save LeoBorai/0429a807ebc6bbc72730d41bd4bd2ebc to your computer and use it in GitHub Desktop.
Hello World Examples
This file contains hidden or 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
| 2020-10-06T15:03:03.751Z |
This file contains hidden or 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
| class HelloWorld: | |
| def __init__(self, name): | |
| self.name = name.capitalize() | |
| def sayHi(self): | |
| print "Hello " + self.name + "!" | |
| hello = HelloWorld("world") | |
| hello.sayHi() |
This file contains hidden or 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
| class HelloWorld | |
| def initialize(name) | |
| @name = name.capitalize | |
| end | |
| def sayHi | |
| puts "Hello !" | |
| end | |
| end | |
| hello = HelloWorld.new("World") | |
| hello.sayHi |
This file contains hidden or 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
| This is a new placeholder file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment