-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprinting-in-python.html
More file actions
136 lines (116 loc) · 5.78 KB
/
Copy pathprinting-in-python.html
File metadata and controls
136 lines (116 loc) · 5.78 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="/theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="/theme/pygments/github.min.css">
<link rel="stylesheet" type="text/css" href="/theme/font-awesome/css/font-awesome.min.css">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<meta name="author" content="Sathish Kumar" />
<meta name="description" content="Printing the statement Its easy task to print a statement in python. Here Iam gonna print "Hello all, Welcome to my blog". Lets see how to print it. print("Hello all, Welcome to my blog") Above is the example for printing the statement in python where print is a keyword ..." />
<meta name="keywords" content="">
<meta property="og:site_name" content=". > Sathish Kumar K"/>
<meta property="og:title" content="Printing in Python"/>
<meta property="og:description" content="Printing the statement Its easy task to print a statement in python. Here Iam gonna print "Hello all, Welcome to my blog". Lets see how to print it. print("Hello all, Welcome to my blog") Above is the example for printing the statement in python where print is a keyword ..."/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="/printing-in-python.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2015-11-19 10:20:00+05:30"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="/author/sathish-kumar.html">
<meta property="article:section" content="Python"/>
<meta property="og:image" content="../images/profile.png">
<title>. > Sathish Kumar K – Printing in Python</title>
</head>
<body>
<aside>
<div>
<a href="">
<img src="../images/profile.png" alt="Sathish Kumar" title="Sathish Kumar">
</a>
<h1><a href="">Sathish Kumar</a></h1>
<nav>
<ul class="list">
<li><a href="../category/post.html" target="_blank">Activities</a></li>
<li><a href="../category/technical.html" target="_blank">Technical</a></li>
<li><a href="/category/python.html" target="_blank">Python</a></li>
<li><a href="../archives.html" target="_blank">View all</a></li>
<li><a href="../authors.html" target="_blank">About me</a></li>
</ul>
</nav>
<ul class="social">
<li><a class="sc-facebook" href="https://www.facebook.com/sathish.kokila.9" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a class="sc-gitlab" href="#" target="_blank"><i class="fa fa-gitlab"></i></a></li>
<li><a class="sc-github" href="https://github.com/Sathishsathi" target="_blank"><i class="fa fa-github"></i></a></li>
</ul>
</div>
<h5><b>sathishsathi500@gmail.com<br>7502273418</b></h5>
</aside>
<main>
<article>
<header>
<h1 id="printing-in-python">Printing in Python</h1>
<p>Posted on Thu 19 November 2015 in <a href="/category/python.html">Python</a></p>
</header>
<div>
<p><img alt="python" src="/images/python.png" /></p>
<h3>Printing the statement</h3>
<p>Its easy task to print a statement in python. Here Iam gonna print "Hello all, Welcome to my blog". Lets see how to print it.</p>
<div class="highlight"><pre><span></span><span class="k">print</span><span class="p">(</span><span class="s2">"Hello all, Welcome to my blog"</span><span class="p">)</span>
</pre></div>
<p>Above is the example for printing the statement in python where print is a keyword.</p>
<h3>Printing Multiple lines</h3>
<p>To print multiple lines,</p>
<div class="highlight"><pre><span></span><span class="k">print</span> <span class="s2">""" Hello There</span>
<span class="s2">Iam happy to welcome you all</span>
<span class="s2">for my blog"""</span>
</pre></div>
<p>The above code will print the statement as you entered within the triple cotes. </p>
<h3>To run it as file</h3>
<p>Open a new python file using any text editor, say for example gedit by using the following command line
<em>gedit filename.py</em></p>
<p>and then type the above code and save. Then run the file using the command,
<em>python filename.py</em></p>
</div>
<div class="tag-cloud">
<p>
</p>
</div>
</article>
<footer>
<p>© Sathish Kumar </p>
<p>Built using <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a></p> </footer>
</main>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " . > Sathish Kumar K ",
"url" : "",
"image": "../images/profile.png",
"description": "Thoughts and Writings"
}
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"name": "Printing in Python",
"headline": "Printing in Python",
"datePublished": "2015-11-19 10:20:00+05:30",
"dateModified": "",
"author": {
"@type": "Person",
"name": "Sathish Kumar",
"url": "/author/sathish-kumar.html"
},
"image": "../images/profile.png",
"url": "/printing-in-python.html",
"description": "Printing the statement Its easy task to print a statement in python. Here Iam gonna print "Hello all, Welcome to my blog". Lets see how to print it. print("Hello all, Welcome to my blog") Above is the example for printing the statement in python where print is a keyword ..."
}
</script></body>
</html>