-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.py
More file actions
63 lines (42 loc) · 790 Bytes
/
Copy pathcode.py
File metadata and controls
63 lines (42 loc) · 790 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
53
54
55
56
57
58
59
60
61
62
63
# print("Hellow world");
# 1 variables in python
# name = "sajjad";
# age = 22;
# _PI = 3.14;
# print("Your name is ",name);
# print("your age is ",age-1);
# print(_PI);
# 2 Datatypes in python
# name = "sajjad";
# age = 22;
# PI = 3.14;
# print(type(name));
# print(type(age));
# print(type(PI));
'''
this is a multi line comment in python
'''
# Arthmetic opration
# a = 10
# b = 5
# sum = a + b
# mul = a * b
# div = a / b
# print(sum)
# print(mul)
# print(div)
# print(a%b)
# print(a**b)
# print(a<b)
# print(a==b)
# print(a!=b)
# type casting
# ans = int(5 + 7.0)
# print(ans,type(ans))
# How to take input in python
# name = input("enter your name")
# print(type(name))
a = int(input("enter a "))
b= int(input("enter b "))
Sum = a + b ;
print(Sum)