Python: Python beginner first class: Python is an Interpreted language. Wait a minute! what is an interpreted language? Interpreted language: --------------------------- ...
Friday, December 2, 2016
Python beginner first class
Python is an Interpreted language. Wait a minute! what is an interpreted language?
# Interpreted is not the property of Programming language rather it's a property of implementation.
# Interpreted language fully depends on language implementation.
# An Interpreted language like python, a ruby that's language implementation execute instruction directly.
# In Interpreted language code run line by line.So that's why python runs the code line by line.
#Python will fall under bytecode interpreted.
# .py source code at first complied at bytecode .pyc. This bytecode can be interpreted by official CPython.
That's it.Now open your Interactive shell. If you are in windows go to start and write python and open IDLE(python GUI).
I am using Python 2.7.6 shell.
Now Let's get start coding.
So our first program:
"Hello world"
press enter and it will show 'Hello world'
2nd program:
print "Hello Python"
output:
Hello Python
Carefully note that first program output give us single quotation and second program only Hello Python because we write a print function in the second program.
Later we talk about function
so, In python, if you want your output without quotation you can use print .
3rd program:
------------------
>>> 1+1
2
>>> 3 * 2
6
>>> 8 - 2
6
>>> 9 / 3
3
>>> 10/3
3
oh, wait. I think you are wrong.where ? 10/3 = 3.33. Hm, write but python
interpreter shows 3. why?
Because 10 and 3 are an integer. That's why interpreter gives the answer integer 3.
But if we define Real number like this:
>>> 10.0 / 3
3.3333333333333335
see output came real number.
Here is the screenshot.
That's it for today.
Thanks.
Tips:
---------
practice interactive mode.As much as you practice you quickly learn, if any mistake please comment.
Interpreted language:
---------------------------
# Interpreted is not the property of Programming language rather it's a property of implementation.
# Interpreted language fully depends on language implementation.
# An Interpreted language like python, a ruby that's language implementation execute instruction directly.
# In Interpreted language code run line by line.So that's why python runs the code line by line.
#Python will fall under bytecode interpreted.
# .py source code at first complied at bytecode .pyc. This bytecode can be interpreted by official CPython.
That's it.Now open your Interactive shell. If you are in windows go to start and write python and open IDLE(python GUI).
I am using Python 2.7.6 shell.
Now Let's get start coding.
So our first program:
"Hello world"
press enter and it will show 'Hello world'
2nd program:
print "Hello Python"
output:
Hello Python
Carefully note that first program output give us single quotation and second program only Hello Python because we write a print function in the second program.
Later we talk about function
so, In python, if you want your output without quotation you can use print .
3rd program:
------------------
>>> 1+1
2
>>> 3 * 2
6
>>> 8 - 2
6
>>> 9 / 3
3
>>> 10/3
3
oh, wait. I think you are wrong.where ? 10/3 = 3.33. Hm, write but python
interpreter shows 3. why?
Because 10 and 3 are an integer. That's why interpreter gives the answer integer 3.
But if we define Real number like this:
>>> 10.0 / 3
3.3333333333333335
see output came real number.
Here is the screenshot.
That's it for today.
Thanks.
Tips:
---------
practice interactive mode.As much as you practice you quickly learn, if any mistake please comment.
Thursday, December 1, 2016
How to install Python windows?
If you want to learn python, then at first you will have to install python software.First, go to this link https://www.python.org/downloads/release/python-2712/
There is two option.I prefer Windows x86 MSI installer because I install that version. You download this.
Installing Python:
------------------------------
After finishing python x86 MSI installer, then open it.
Click the run button.
If only you use your computer then leave it for install for all users.
If you are multiple accounts on your PC, then choose the second option.
If you want to change to installation folder feel free to change. But I suggest that leave it as it is and click next.
scroll down and select the red and click next.
we see the windows command prompt and it means installation process start and when you saw that cleaning up... it means python install in your computer.
pip is package management. pip allow you install all additional python packages from PyPI.
Then click finish.
There is two option.I prefer Windows x86 MSI installer because I install that version. You download this.
Installing Python:
------------------------------
After finishing python x86 MSI installer, then open it.
Click the run button.
If only you use your computer then leave it for install for all users.
If you are multiple accounts on your PC, then choose the second option.
If you want to change to installation folder feel free to change. But I suggest that leave it as it is and click next.
scroll down and select the red and click next.
we see the windows command prompt and it means installation process start and when you saw that cleaning up... it means python install in your computer.
pip is package management. pip allow you install all additional python packages from PyPI.
Then click finish.
If you chose to use the 2.7.3 version of Python, you will need to follow these steps. Once you have successfully installed Python, it is time to add it to the System Path Variable. Doing this will allow Python to run scripts on your computer without any conflicts of problems.
Begin by opening the start menu and typing in “environment” and select the option called “Edit the system environment variables.”
Then System Properties open and click the environment variable.
click the new and a box pops-up.
In variable name you can write anything. variable path "C:\Python27\;C:\Python27\Scripts;"
If you change folder destination and write this folder path.
Press “OK,” then “OK,” then “OK,” then the red “X” to accept all changes and exit the “System Properties” window.
Now we successfully install and add an environment variable, we are ready to open python GUI.
Go to Start menu and type python saw that :
click this IDLE and see that 2.7.6 that's a version number 64 bit version.
now just write this print "Hello, Python!"
it will eventually show this output!
Hello, Python!
That's it for today!
Wednesday, November 23, 2016
How do I start Programming ?
So, You want to be a Programmer. That's great. Great decision. Now I tell you how I start my programming career:
Before starting my college or university life I never heard Programming. I had a computer when I had 9th grade. That was awesome. I had access internet. I saw Youtube and facebook. Facebook is my addiction.That was 2009. I used to play GTA vice city and FIFA 8 and pes also. I never search programming and nothing. My friend never discussed this subject with me because they don't know.
Year 2014- Start College Life:
----------------------------------------
I was admitted http://www.aiub.edu/ this university. My major computer science. At the first semester they gave me PL1. I don't know what is PL1. When I asked my senior "Brother, Do you know what is PL1"? They smiled and told "PL1 is ruin your 1st semester". What the fuck?. I scared and at the first class I was thinking what happened now?. So , I went to washroom and face my wash and saw my face and told myself "Joy go kill it, kill your fear! Fuck the fear".
when I told "fuck" it gives me a power. I went to the classroom and sit down.
Professor came and start his lecture.He told me so many things. I don't remember right now what he told . But one thing only one thing remembered "If you fail, I don't help you!". So, I came home and think what i do now?. I told myself what ever happened I never give up. Professor told us read "Let us C". I bought a copy from library shop. I started read this book and I don't understand a single think. I just fucked myself.
First lab I heard that we were learning "C". 'C'???. What is this? . It's a programming language.Denis Ritchie developed this language. We all student opening visual studio and and save this file and write it the "Hello, World!"
code.I like it and love it.
I came to home and install visual studio and it almost slow my laptop. I don't like it and my friend say install codeblocks and it's good. I was again print same code. That's how I started programming.
One thing remember if you don't know any subject, please don't make fun this subject. Respect other people those who are not programmer. They give you the respect.
Starting a programming is hard but remember if you love it, it will change your life !!
C resources:
---------------
https://en.wikipedia.org/wiki/C_(programming_language)
https://www.quora.com/What-are-some-of-the-best-websites-to-learn-C-programming-step-by-step-from-the-intermediate-level-to-the-pro-level
http://www.cprogramming.com/
http://stackoverflow.com/questions/1345506/where-is-the-best-place-to-learn-c
https://www.wibit.net/
http://stackoverflow.com/questions/81656/where-do-i-find-the-current-c-or-c-standard-documents?rq=1
http://www.learncpp.com/
https://www.quora.com/What-are-the-best-YouTube-channels-to-learn-the-C-language-Which-channel-gives-the-detailed-explanation
https://thenewboston.com/videos.php?cat=14
https://www.quora.com/What-are-the-best-blogs-on-C-programming-language
https://cprogrammingcodes.blogspot.com/
http://fabiensanglard.net/c/
Before starting my college or university life I never heard Programming. I had a computer when I had 9th grade. That was awesome. I had access internet. I saw Youtube and facebook. Facebook is my addiction.That was 2009. I used to play GTA vice city and FIFA 8 and pes also. I never search programming and nothing. My friend never discussed this subject with me because they don't know.
Year 2014- Start College Life:
----------------------------------------
I was admitted http://www.aiub.edu/ this university. My major computer science. At the first semester they gave me PL1. I don't know what is PL1. When I asked my senior "Brother, Do you know what is PL1"? They smiled and told "PL1 is ruin your 1st semester". What the fuck?. I scared and at the first class I was thinking what happened now?. So , I went to washroom and face my wash and saw my face and told myself "Joy go kill it, kill your fear! Fuck the fear".
when I told "fuck" it gives me a power. I went to the classroom and sit down.
Professor came and start his lecture.He told me so many things. I don't remember right now what he told . But one thing only one thing remembered "If you fail, I don't help you!". So, I came home and think what i do now?. I told myself what ever happened I never give up. Professor told us read "Let us C". I bought a copy from library shop. I started read this book and I don't understand a single think. I just fucked myself.
First lab I heard that we were learning "C". 'C'???. What is this? . It's a programming language.Denis Ritchie developed this language. We all student opening visual studio and and save this file and write it the "Hello, World!"
code.I like it and love it.
I came to home and install visual studio and it almost slow my laptop. I don't like it and my friend say install codeblocks and it's good. I was again print same code. That's how I started programming.
One thing remember if you don't know any subject, please don't make fun this subject. Respect other people those who are not programmer. They give you the respect.
Starting a programming is hard but remember if you love it, it will change your life !!
C resources:
---------------
https://en.wikipedia.org/wiki/C_(programming_language)
https://www.quora.com/What-are-some-of-the-best-websites-to-learn-C-programming-step-by-step-from-the-intermediate-level-to-the-pro-level
http://www.cprogramming.com/
http://stackoverflow.com/questions/1345506/where-is-the-best-place-to-learn-c
https://www.wibit.net/
http://stackoverflow.com/questions/81656/where-do-i-find-the-current-c-or-c-standard-documents?rq=1
http://www.learncpp.com/
https://www.quora.com/What-are-the-best-YouTube-channels-to-learn-the-C-language-Which-channel-gives-the-detailed-explanation
https://thenewboston.com/videos.php?cat=14
https://www.quora.com/What-are-the-best-blogs-on-C-programming-language
https://cprogrammingcodes.blogspot.com/
http://fabiensanglard.net/c/
Tuesday, November 22, 2016
Programming
What is Computer Programming?
If someone really doesn't know what is really computer programming Then this post is for u. And who know that this post might not very helpful for u.
A computer is a Machine. So What a Machine does.? The machine takes input and gives you the output. Give you an Example: When you use the lift, you press the button up when you goes up. The machine takes you the up and when you want goes down , you simply press down button. Machine do what you want.
ok ,Now you said that " I got that , but now Programming?What the hack is it? Is it Alien language?
Programming . Wait what is a Program?. A Program is something like Meetup or wedding or going to Church.
When wedding program held behind the scene actually what happened?. Just think that?. At first, choose the place where wedding happened,then set up the whole place , invited people list, organize the food menu and so on and after that wedding happened. Behind the scene all are a command which is given by someone and people do this.
Now , Computer Programming is the process of creating programs. A program is set off instruction which is given by people or Programmer . The programmer was those who written computer Program. A program is written a computer programming language.
So , when you create computer programs , This time you must know how to give instruction your computer just like you did your lift or dog. That's why you need to learn computer Programming.
Important Links:
https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro
https://en.wikipedia.org/wiki/Computer_programming
Important Links:
https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro
https://en.wikipedia.org/wiki/Computer_programming
Thanks For Reading.
See You Soon.
Why You learn Python and Where You use it?
Why you learn Python
-------------------------
A couple of reasons.
1. Very Easy to Understand and learn.
2. Interpreted Language.You can print line by line.
3. easy to debug.
4. Huge of the library function.Most of the programmers don't like this but if you are a beginner or create a startup then you must need it .
5. use everywhere. Not the ICPC(International Collegiate Programming contest.)
6. No syntax or brackets, semicolon.(Python 3 use parenthesis)
7. Topics directly use everywhere like List, Dictionary, Tuple,set and so on.
8. Never feel boring.
This 8 reason is my personal reason . What I feel actually!!
But one thing remembers if you don't practice, then it's really hard to remember and understand How python code works and How I write this or solve this problem. So Keep Practicing, the more you practice ,you like this.
Where I use it
----------------------
1. Web programming.
2. Software development.
3.GUI (Graphical User Interface)
4. Scientific and Numeric.
5. Education.
6. Software Development.
7. Games (My favorite)
I will write the basic content each of this topic. So Don't be panic, if you don't
understand.
Currently, I am working on web and Games. So , I will give you better information and my experience What I felt using python language in this sector.
-------------------------
A couple of reasons.
1. Very Easy to Understand and learn.
2. Interpreted Language.You can print line by line.
3. easy to debug.
4. Huge of the library function.Most of the programmers don't like this but if you are a beginner or create a startup then you must need it .
5. use everywhere. Not the ICPC(International Collegiate Programming contest.)
6. No syntax or brackets, semicolon.(Python 3 use parenthesis)
7. Topics directly use everywhere like List, Dictionary, Tuple,set and so on.
8. Never feel boring.
This 8 reason is my personal reason . What I feel actually!!
But one thing remembers if you don't practice, then it's really hard to remember and understand How python code works and How I write this or solve this problem. So Keep Practicing, the more you practice ,you like this.
Where I use it
----------------------
1. Web programming.
2. Software development.
3.GUI (Graphical User Interface)
4. Scientific and Numeric.
5. Education.
6. Software Development.
7. Games (My favorite)
I will write the basic content each of this topic. So Don't be panic, if you don't
understand.
Currently, I am working on web and Games. So , I will give you better information and my experience What I felt using python language in this sector.
What is Python?
Python is a Snake.But here I am not coming to discuss Snake. I am writing Python which is a programming language. Python is an object-oriented, high-level ,open and one of the best easy programming language.Python is easy because of it's readability.when you write python code or read python code you easily understand because it's actually written plain English. And other things most important is that when you saw others people code and if you don't understand python but I will assure if the people are good enough, He can easily teach you the python. Python has done your work very quickly and you can use everywhere.
Subscribe to:
Posts (Atom)