- This event has passed.
2PM Python Level 1
May 11, 2019 @ 2:00 pm - 3:00 pm
- We had Python Quiz about Variables, Data Types, Making Decision, Taking inputs from Shell.
- We continued with creating function in python.
- Homework:
- Create a function, “hello_world”, with no parameter and inside the function it will print “Hello World”. Call the function.
- Create a function, “Greeting”, with one parameter, “name”. Inside the function, print to the shell the combination of the word “greeting ” and the name parameter. Call the function like this “greeting(‘Gamas’)” . The result should be “Greeting Gamas” in the shell.
- Create a function, “combine_words”, with 3 parameters. Inside the function, print the combination of all three parameters. Call the function like this: “combine_words(‘Hello ‘, ‘Mr. ‘, ‘Gamas.’)” . This will print ‘Hello Mr. Gamas’ to the shell.