-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmini basics.py
46 lines (38 loc) · 1011 Bytes
/
mini basics.py
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
'''
variable types-float,int,strings(any text(characters,numbers,etc)),boolean(True or False)
print-what we want (coders)
'''
# firstname="Tony"
# lastname="Stark"
# print(firstname+" " + lastname)
# age="51"
# print(age)
# genius=True
# print(genius)
'''
print(what user want)
for this we need to store the value by forming a variable than print the stored value to get the output
'''
# name=input("what's her father's name?")
# print("hello"+" " + name) ### CONCATENATION
# superhero=input("Tony, tell me your superhero name")
# print(superhero)
'''
Type Conversion
can algorith among strings,among integers no inter algorithsm is allowed.
'''
# old_marks=input("pls enter your marks:")
# new_marks=int(old_marks) +5
# print(new_marks)
# old_name=input("pls type your old name:")
# new_name=old_name+ "kishan"
# print(new_name)
# number=45
# print(float(number))
'''
int to input not the print
'''
# I=int(input("enter first number"))
# II=int(input("enter second number"))
# sum=(I+II)
# print(sum)