Professional Documents
Culture Documents
In [3]:
#1. Write a Python program which accepts the user's first and
# last name and print them in reverse order with a space between them.
a=input("input your first name: ")
b=input("input your last name: ")
print(b[::-1],"",a[::-1])
nitup rimdalv
In [2]:
Input an integer : 3
369
In [1]:
if C == 1:
print('True')
else:
print('False')
Enter a value5
False
In [8]:
49
In [15]:
2 2
3 3 3
4 4 4 4
5 5 5 5 5
In [17]:
your sum is 20
In [21]:
enter a number: 5
In [25]:
<class 'str'>
In [35]:
Input In [35]
In [38]:
#9. Program to print first letter of your name using characters pattern.
for row in range(5):
print('',end=' ')
print('#',end=' ')
else:
# # #
# #
# # #
# #
# #
In [*]:
In [ ]: