Python without new line
Python Program to print content in same line while using multiple print statements.
Try your Solution
Strongly recommended to Solve it on your own, Don't directly go to the solution given below.
#write your code here
Program or Solution
num1=int(input("Enter a First Number:"))
num2=int(input("Enter a Second Number:"))
print(num1,end='')
print(num2)
Program Explanation
by default print() function prints new line at the end, to avoid this you can use end parameter.
Here value of end parameter is space.
Comments
Related Programs
- Python Hello World
- Python get input
- Python get Integer input
- Python get float input
- Python Decimal places
- Python New Line
- Python tab Space
- Python Tuple Assignment
- Python Integer to Character
- Python Decimal to HexaDecimal
- Python Hexa Decimal to Decimal
- Python Decimal to Octal
- Python Octal to Decimal
- python Exponent representation
coming Soon
coming Soon