# Becoming a Software Engineer at Blockfuselabs ## WEEK4 Week4 got off to a quicker start than I had anticipated. We started with an introduction to python and by the end of the first day in week 4 we had done a lot. From simple and basic stuff like how to `print "hello world "` to thmore complex things like ``` list set tuple dictionary and data types (bool, int, float, str etc.) ``` It was exhilarating and I finally felt like I was really programming for the first time. To break it into nuggets, let me set a scene for you with some examples and how they work. ``` Set. the set {}, allows you to list items in a program. eg: {apple, pineapple, melons} but the twist here is sets do not allow for duplicates of an item. ``` ``` tuple. tuple, () works like a set, but allows for duplicates but with the added condition that itewms listed in a tuple cannot be changed afterwards. ``` ``` list. list,[] is probably the most used one amongst them. It allowe for both conditions that make the tuple and set avoided by others. List allows us duplicate iteme and also allow us vhsnge the content of a list in the program. ``` Here's a sneak peak from a few lines of code using it as an example. ![IMG_4111](https://hackmd.io/_uploads/BJDTz1YHxg.jpg) Above we can see how we use some of these commands in python and here are some things to note. Unlike with shell scripting, we do not need to give user execute permission to run the file. Each `.py` file is already executable by nature. All we need do to run a pythin file is the command `python3 filename.sh` and it runs as long as no errors are made in thr file. That is basically a rundown of what happened in Week 4 at Blockfuse and I believe I gage you, the reader, some insights into python and how it works.