Programming can be a fascinating topic when given the right beginning and level of understanding. Meanwhile, it was known to have had the best 3 most valuable features such as:
- Formulating problems
- Breaking them down into meaningful steps to be ascertained
- Communicating those steps to and with the personal computer.
Activities
input : x output : 10
Mechanistic Thinking:
Computers can only execute what you ask them to do and they do precisely what is fed, therefore:
1 def plus_ten ( x )
2 return x + 10
3 print plus_ten ( 2 )
Tips:
- Load any available code editor
- Feed the system with the above code
- Each line takes a raw entry of the line of code
- Ensure to see the file with the right extension, in this case, we are using the .py
- Run the program, those using the code editor should select the three dots at the top right corner of the window
- Tap on the Execute button
Congratulations!!!
About Author
Discover more from SURFCLOUD TECHNOLOGY
Subscribe to get the latest posts sent to your email.