-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.html
More file actions
104 lines (84 loc) · 5.27 KB
/
python.html
File metadata and controls
104 lines (84 loc) · 5.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>PYTHON</title>
</head>
<body background="oo.jpg">
<nav class="navbar background" >
<ul class="nav-list">
<div class="logo"><img src="img.jpg" alt="logo"</div>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="java.html">JAVA</a></li>
<li><a href="c.html">C++</a></li>
<li><a href="python.html">PYTHON</a></li>
<li><a href="html.html">HTML</a></li>
<li><a href="css.html">CSS</a></li>
</nav>
<section class="section-fr">
<div class="paras">
<p class="sectionTag text-big">Python Programming Language</p>
<p class="sectionSubTag text-small">Python is a high-level, general-purpose and a very popular programming language. Python programming language (latest Python 3) is being used in web development, Machine Learning applications, along with all cutting edge technology in Software Industry. Python Programming Language is very well suited for Beginners, also for experienced programmers with other programming languages like C++ and Java.
python-programming-language Python-Tutorial
This specially designed Python tutorial will help you learn Python Programming Language in most efficient way, with the topics from basics to advanced (like Web-scraping, Django, Deep-Learning, etc.)<br>
<h4 class="FF">Python 3 basics</h4><br>
<ul><li>Python was developed by Guido van Rossum in the early 1990s and its latest version is 3.7.1, we can simply call it as Python3. Python 3.0 was released in 2008. and is interpreted language i.e it’s not compiled and the interpreter will check the code line by line.</li><br> This article can used to learn very basics of Python programming language.
<li> let’s do the most popular ‘HelloWorld’ tradition and hence compare Python’s Syntax with C, C++, Java ( I have taken these 3 because they are most famous and mostly used languages).</li><br>
<li> Python code for "Hello World"</li><br>
<li>nothing else to type...see how simple is the syntax.</li><br></ul>
print("Hello World")<br>
Note: Please note that Python for its scope doesn’t depend on the braces ( { } ), instead it uses indentation for its scope.<br>
Now moving on further Lets start our basics of Python . I will be covering the basics in some small sections. Just go through them and trust me you’ll learn the basics of Python very easily.
Introduction and Setup<br>
If you are on Windows OS download Python by Clicking here and now install from the setup and in the start menu type IDLE.IDLE, you can think it as an Python’s IDE to run the Python Scripts.
It will look somehow this :<br>
If you are on Linux/Unix-like just open the terminal and on 99% linux OS Python comes preinstalled with the OS.Just type ‘python3’ in terminal and you are ready to go.
It will look like this :<br>
The ” >>> ” represents the python shell and its ready to take python commands and code.<br>
Variables and Data Structures<br>
In other programming languages like C, C++, and Java, you will need to declare the type of variables but in Python you don’t need to do that. Just type in the variable and when values will be given to it, then it will automatically know whether the value given would be an int, float, or char or even a String.<br>
# Python program to declare variables<br>
myNumber = 3<br>
print(myNumber)<br>
myNumber2 = 4.5<br>
print(myNumber2)<br>
myNumber ="helloworld<br>"
print(myNumber)<br>
Output:<br>
3<br>
4.5<br>
helloworld<br>
See, how simple is it, just create a variable and assign it any value you want and then use the print function to print it. Python have 4 types of built in Data Structures namely List, Dictionary, Tuple and Set.<br>
List is the most basic Data Structure in python. List is a mutable data structure i.e items can be added to list later after the list creation. It’s like you are going to shop at the local market and made a list of some items and later on you can add more and more items to the list.
append() function is used to add data to the list.<br>
# Python program to illustrate a list <br>
# creates a empty list<br>
nums = [] <br>
# appending data in list<br>
nums.append(21)<br>
nums.append(40.5)<br>
nums.append("String")<br>
print(nums)<br>
Output:<br>
[21, 40.5, String]<br>
<h6 class="ee">To Watch Tutorials Click On the Button Given Below </h6>
</p>
</div>
<div class="thumbnail-q">
<img src="py.jpg" alt="coding" class="imgFluid" height="135">
</div>
<div class="thumb">
<img src="fr.png" alt="coding" class="imgFluid" height="135">
</div>
</section>
<button class="btn-as"><a class="ii" href="https://youtu.be/gfDE2a7MKjA" target="_blank">PYTHON</a><br></button>
<footer class="background">
<p class="text-footer">Copyright © 2027-All rights reserved
</p>
</footer>
</body>
</html>