Skip to content

Commit 83d058d

Browse files
committed
hello world program
1 parent 73aa5b2 commit 83d058d

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

01_hello_world.ipynb

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"slideshow": {
7+
"slide_type": "slide"
8+
}
9+
},
10+
"source": [
11+
"# \"Hello world\" in Python!"
12+
]
13+
},
14+
{
15+
"cell_type": "markdown",
16+
"metadata": {
17+
"slideshow": {
18+
"slide_type": "subslide"
19+
}
20+
},
21+
"source": [
22+
"When programmers learn a new language, it is common to write a one-line program that prints some version of the message \"Hello world!\" this is a simple program that shows whether your computer is properly set up to run the programming language. Try executing the cell below to print the message in Python."
23+
]
24+
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": 2,
28+
"metadata": {
29+
"collapsed": false,
30+
"slideshow": {
31+
"slide_type": "fragment"
32+
}
33+
},
34+
"outputs": [
35+
{
36+
"name": "stdout",
37+
"output_type": "stream",
38+
"text": [
39+
"Hello Python world!\n"
40+
]
41+
}
42+
],
43+
"source": [
44+
"print('Hello Python world!')"
45+
]
46+
},
47+
{
48+
"cell_type": "markdown",
49+
"metadata": {
50+
"slideshow": {
51+
"slide_type": "fragment"
52+
}
53+
},
54+
"source": [
55+
"If it works, congratulations! You just ran your first Python program."
56+
]
57+
}
58+
],
59+
"metadata": {
60+
"kernelspec": {
61+
"display_name": "Python [default]",
62+
"language": "python",
63+
"name": "python3"
64+
},
65+
"language_info": {
66+
"codemirror_mode": {
67+
"name": "ipython",
68+
"version": 3
69+
},
70+
"file_extension": ".py",
71+
"mimetype": "text/x-python",
72+
"name": "python",
73+
"nbconvert_exporter": "python",
74+
"pygments_lexer": "ipython3",
75+
"version": "3.5.3"
76+
}
77+
},
78+
"nbformat": 4,
79+
"nbformat_minor": 0
80+
}

0 commit comments

Comments
 (0)