Skip to content

Commit 198c759

Browse files
authored
Update README.md
1 parent 34ed6c7 commit 198c759

File tree

1 file changed

+35
-82
lines changed

1 file changed

+35
-82
lines changed

README.md

+35-82
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,59 @@
1-
# Programming-with-Python
1+
## Why python?
22

3-
## Variables
3+
* Python is a general-purpose language, which means it can be used to build just about anything, which will be made easy with the right tools/libraries.
4+
* Professionally, Python is great for backend web development, data analysis, artificial intelligence, and scientific computing. Many developers have also used Python to build productivity tools, games, and desktop apps, so there are plenty of resources to help you learn how to do those as well.
5+
* Python is an easy programming language for beginners to start out with
46

7+
1. Data Science
58

6-
* Variables are containers for storing data values.
7-
* Unlike other programming languages, Python has no command for declaring a variable.
8-
* A variable is created the moment you first assign a value to it
9+
* Python is the leading language of many data scientist. For years, academic scholars and private researchers were using the MATLAB language for scientific research but it all started to change with the release of Python numerical engines such as ‘Numpy’ and ‘Pandas’.
10+
* python also deals with the tabular, matrix as well as statistical data and it even visualizes it with popular libraries such as ‘Matplotlib’ and ‘Seaborn
911

10-
Example :
11-
```python
12-
x = 1234
13-
y = "Aman"
14-
print(x)
15-
print(y)
16-
```
12+
2. Scripting & Automation.
1713

14+
* This is a very useful capability that allows you to type in a program and to have it executed immediately in an interactive mode.
15+
* The code is written in the form of scripts and get executed
16+
* Machine reads and interprets the code
17+
* Error checking is done during Runtime
18+
* Once the code is checked, it can be used several times. So by automation, you can automate certain tasks in a program. 
1819

20+
3. Big Data
1921

20-
Variables do not need to be declared with any particular type and can even change type after they have been set.
22+
Python handles a lot of hassles of data. It supports parallel computing where you can use Python for Hadoop as well. In Python, you have a library called “Pydoop” and you can write a MapReduce program in Python and process data present in the HDFS cluster.
2123

22-
```
23-
x = 78
24-
x = "Illona"
25-
print(x)
26-
```
24+
4. Computer Graphics
2725

28-
String variables can be declared either by using single or double quotes:
26+
Python is largely used in small, large, online or offline projects. It is used to build GUI and desktop applications. It uses ‘Tkinter‘ library to provide fast & easy way to create applications.
2927

30-
```
31-
x = "Aman" // is the same as
32-
x = 'Aman'
33-
```
28+
5. Artificial Intelligence
3429

35-
Variable Names
36-
A variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Python variables:
37-
* A variable name must start with a letter or the underscore character
38-
* A variable name cannot start with a number
39-
* A variable name can only contain alpha-numeric characters and underscores (A-z,0-9,and _)
40-
* Variable names are case-sensitive (age, Age and AGE are three different variables)
30+
 You can actually make a machine mimic the human brain which has the power to think, analyze and make decisions.
31+
Furthermore, libraries such as Keras and TensorFlow bring machine learning functionality into the mix. It gives the ability to learn without being explicitly programmed. Also, we have libraries such as openCvthat helps computer vision or image recognition.
32+
33+
6. Web Development
4134

35+
Python has an array of frameworks for developing websites. The popular frameworks are Django, Flask, Pylons etc. Since these frameworks are written in Python, its the core reason which makes the code a lot faster and stable. We can also perform web scraping where you can fetch details from any other websites. You will also be impressed as many websites such as Instagram, bit bucket, Pinterest are build on these frameworks only.
36+
37+
7. Portable & Extensible
38+
39+
* The portable and extensible properties of Python allow you to perform cross-language operations seamlessly. Python is supported by most platforms present in the industry today ranging from Windows to Linux to Macintosh, Solaris, Play station, among others.
40+
* Python’s extensibility features allow you to integrate Java as well as .NET components. You can also invoke C and C++ libraries.
41+
42+
8. Simple & Easy To Learn
43+
44+
* Python is Free & open source
45+
* High-level
46+
* Interpreted
47+
* Blessed with large community
4248

43-
Assign Value to Multiple Variables
44-
Python allows you to assign values to multiple variables in one line:
4549

46-
Example
4750

48-
```
49-
x, y, z = "X", "Y", 5
50-
print(x)
51-
print(y)
52-
print(z)
53-
```
5451

55-
And you can assign the same value to multiple variables in one line:
5652

57-
```
58-
Example
59-
x = y = z = "O"
60-
print(x)
61-
print(y)
62-
print(z)
63-
```
6453

65-
The Python print statement is often used to output variables.
6654

67-
* To combine both text and a variable, Python uses the + character:
6855

69-
```
70-
x = "A"
71-
print("Python is " + x)
72-
```
7356

74-
* You can also use the + character to add a variable to another variable:
7557

76-
```
77-
x = "life is "
78-
y = "awesome"
79-
z = x + y
80-
print(z)
81-
```
8258

83-
* For numbers, the + character works as a mathematical operator:
84-
```
85-
x = 78
86-
y = 98
87-
print(x + y)
88-
```
89-
* If you try to combine a string and a number, Python will give you an error:
9059

91-
```
92-
x = 20
93-
y = "Aman"
94-
print(x + y)
95-
```
96-
## Global Variables
97-
98-
A variable declared outside of the function or in global scope is known as global variable. This means, global variable can be accessed inside or outside of the function.
99-
100-
```
101-
x = "aman"
102-
def func():
103-
print("Python is " + x)
104-
105-
func()
106-
```

0 commit comments

Comments
 (0)