Computer Science, asked by davidjohn24121, 2 months ago

Write a program that reads a number between 1,000 and 999,999 from the user, where the user enters a comma in the input. Then print the number without a comma. Here is a sample dialog; the user input is in color: in python​

Answers

Answered by poojan
12

Language: Python 3.0

Program:

print(''.join(input('Enter a number between 1,000 to 999,999 : ').split(',')))

Input:

876,798

Output:

876798

Program in more understandable way:

number = input('Enter a number between 1,000 to 999,999')

number=number.split(',')    #Splits the numbers based on commas into list

print(''.join(number))

#Joins the numbers in the list with no spaces in between.

Learn more:

1. Hockey Problem

brainly.in/question/12306355

2. Numerical belly problem

brainly.in/question/16880104

Similar questions
Math, 1 month ago