-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.py
More file actions
52 lines (37 loc) · 843 Bytes
/
hello.py
File metadata and controls
52 lines (37 loc) · 843 Bytes
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
print("Hello world!")
a=1+2+3+3+ \
4+5+6+ \
7+8+9
print (a);
#for i in range(1,11):
# print(i)
# if i==7:
# break
# if i==6:
# print("hello : "); print(i)
#if True:
# print('Hey,its true')
# a =7
def double(num):
"""Function to double the value"""
return 2*num
print(double.__doc__)
d = {1:"hello", "2":"hallo", "three":"hola"}
print (d)
print (d['2'])
print (d[1])
print (float(5))
print (int(10.7))
print (int(-10.7))
h = "hhh";
print('The value of a is', h)
x=" WINTER "; y= "COMING"
print('x is {} and y is {}'.format(x,y))
print('I love {1} and {0}'.format('bread','butter'))
print('Hello {name}, {greeting}'.format(greeting = 'Goodmorning', name = 'John'))
x=12.345632
print('The value of x is %3.2f' %x)
namee=123223
num = input('Enter a number: ')
#namee=23234
print(num)