Skip to playerSkip to main content
  • 4 months ago
Think like a computer scientist. How to think like a computer programmer.Use Mathematical formulas to learn universal truth. Data science will help you to identify the insights from big data.
Transcript
00:00hi guys today I will tell you how to think like a computer scientist what are the steps and what
00:12subjects we should need to learn and what programming languages we need to know to
00:17become a computer scientist or how to think like a computer scientist in detail the goal of this
00:24video is to tell you that how to think like a computer scientist this way of thinking combines
00:33some of the best features of mathematics engineering and natural sciences like
00:39mathematicians computer scientists use for formal languages to denote ideas specifically computations
00:46like engineers they design things assembling components into systems and evaluating trade-offs
00:54among alternatives like scientists they observe the behavior of complex systems from hypotheses and
01:01test predictions the single most important skill for a computer scientist is problem solving problem
01:10solving means the ability to formulate problems think creatively about solutions and express a
01:17solution clearly and accurately as it turns out the process of learning to program is an excellent
01:24opportunity to prepare to practice problem solving skills that's why we can say that think like a
01:33computer scientist or the way of the program on one level you will be learning to program a useful skill by
01:41itself one another level you will use programming as a means to an end as we go along that ends will become clear here
01:56the python programming language the programming language you will be learning in python python is an example of high level language
02:05language other high level languages you might have to hear from like c c plus plus parallel java and php
02:15as you might infer from the name high level languages there are also low level languages sometimes referred to as a machine languages or assembly languages
02:26loosely speaking computers can only execute programs written in low level languages thus programs written in a high level languages have to be
02:36process before they can run
02:38this extra processing takes some time which is a small disadvantage of high level languages
02:49but the advantage is of enormous
02:51first it is a much easier to program in a high level languages programs written in a high level languages take less time to write
02:59first they are shorter and easier to read and they are more likely to be correct
03:05second high level languages are portable meaning that they can run on different kinds of computers
03:13with fewer or no modifications low level programs can run on uh only one kind of computer and they have to be
03:22read rewritten to run on another program due to these advantages most almost all programs are written in
03:33high level languages low level languages are used only for a few specialized applications
03:41two kinds of programs process high level languages into low level languages
03:46interpreters and compilers and interpreters regards reads the high level languages high level of program
03:55and execute it meaning that it does what the program says if it processes the program a little at a time
04:04alternatively reading lines and performing computers
04:07a compiler reads the program and translate it complete before the program started running
04:17in the in this case the high level program is called the source code
04:23and the translated program is called the object code or the execute table
04:28once a program is compiled you can execute it repeatedly without further translation
04:34python is considered an interpreted language because python programs are executed by an interpreter
04:43these are two ways to use the interpreter command line mode and a script mode
04:50in command line mode you can you type python programs and the interpreter prints the results
04:56the first line of this example the first line of this example is the command line
05:03starts the python interpreter the the next line two lines are message from the interpreter the third line
05:10starts with the which it is prompt in the interpreter used to indicate that it is ready we type print one
05:19plus one and interpret reply to so alternatively you can write a program in the field of in in a file and use the
05:26interpreter to execute the context of the interpreter to execute the context of the file such file is called secret
05:32for example we used a text editor to create a file name layout.py with the following contents like print one plus one
05:42so thank you so much
Be the first to comment
Add your comment

Recommended