Python Basics

#split() will be used to enter the multiple strings seperated by spaces at once 
#in multiple variables while map is used to enter the numberic value
x, y = input("enter two strings").split()
print(x, y)
m, n = map(int, input("enter two numbers").split())
print(m, n)
#input
#bhaskar varshney
#2 3

Comments

Popular posts from this blog

First_Come_First_Serve CPU Scheduling

Reversing stack Method 2 !! (One Helper Stack only)

Populating Next Right Pointers in Each Node in O(1) space (without queue and level order)

Calculate factorial of large numbers !! (Using Arrays)

Multiplication of large numbers (Given in string format)

Left View of Binary Tree (Method 1 using recursion)

Check Bracket Sequence

Image Multiplication

Boundary Traversal of binary tree

BST to greater sum tree