Skip to content

Commit d92e1e8

Browse files
RezwanRezwan
Rezwan
authored and
Rezwan
committed
1. Introduction
1 parent aa11f2e commit d92e1e8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Input Output.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
a = input() # take a string (with-space, without-space)
2+
# hello world
3+
print(a) # hello world
4+
5+
6+
a = int(input()) # take only one int number
7+
# 5
8+
print(a) # 5
9+
10+
a = float(input()) # take only one float number
11+
print(a)
12+
13+
a = str(input()) # take only one str
14+
print(a)
15+
16+
a, b = map(int, input().split()) # take two numbers with only one space. like : 2 3
17+
print(a, b) # 2 3
18+
19+
a, b, c = map(int, input().split()) # take three numbers with only one space # 2 3 4
20+
print(a, b, c) # 2 3 4
21+
22+
# input a list
23+
arr = list(map(int, input().split())) # int type array
24+
print(arr) # [1, 2, 3, 4, 5]
25+
print(*arr) # 1 2 3 4 5
26+
27+
a = int(input("Enter a Integer number: "))
28+
print("Entered number is %d" % a)
29+
'''
30+
Enter a Integer number: 233
31+
Entered number is 233
32+
'''
33+
34+
a = float(input("Enter a Float number: "))
35+
print("Entered number is %f" % a)
36+
'''
37+
Enter a Float number: 233.5
38+
Entered number is 233.5
39+
'''

0 commit comments

Comments
 (0)