A program that removes specific characters from the entered text

Hi, this is Nagamasa Yamada. I tried to see if I could remove a certain character from the text. Editor used googleColaboratory https://colab.research.google.com/notebooks/welcome.ipynb?hl=ja#scrollTo=bXqBzduB4o0d

program

g =input()
p=input()
h=g.split(sep=p)
b="".join(h)
print(b)

Enter a sentence for the first input and the words you want to skip for the second When split splits a string by a character and puts it in a list I use the property that a certain character disappears

Example

input
Irohanihohe
I
output
Rohanihohe

Recommended Posts

A program that removes specific characters from the entered text
[Python] A program that rounds the score
Extract lines that match the conditions from a text file with python
A program that will slowly recover the economy from any news headline
A program that removes duplicate statements in Python
A program that searches for the same image
A shell program that displays the Fibonacci sequence
[Python] A program that counts the number of valleys
A programming language that protects the people from NHK
[Python] A program that compares the positions of kangaroos.
A Python program that converts ical data into text
[Sublime Text 2] Always execute a specific file in the project
Create a data frame from the acquired boat race text data
I tried "a program that removes duplicate statements in Python"
A program that just presses and releases the Esc key
[Python] A program that finds the most common bird types
A Python program that aggregates time usage from icalendar data
[Golang] A program that determines the turn with random numbers
pandas Fetch the name of a column that contains a specific character
A formula that simply calculates the age from the date of birth
From a book that programmers can learn (Python): Find the mode
Outputs a line containing the specified character string from a text file
[Ev3dev] Create a program that captures the LCD (screen) using python
Read a file in Python with a relative path from the program
Try to write a program that abuses the program and sends 100 emails
A program that determines whether a number entered in Python is a prime number
[Python algorithm] A program that outputs Sudoku answers from a depth-first search
A program that answers a few questions and predicts the next answer
Find all patterns to extract a specific number from the set
I made a program that automatically calculates the zodiac with tkinter
[Python] A program that rotates the contents of the list to the left
The story of writing a program
A story about creating a program that will increase the number of Instagram followers from 0 to 700 in a week
[Python] A program that calculates the number of chocolate segments that meet the conditions
[Python] A program that calculates the number of socks to be paired
I made a simple timer that can be started from the terminal
From a book that makes the programmer's way of thinking interesting (Python)
[Python] A function that aligns the width by inserting a space in text that has both full-width and half-width characters.
[Python] A program that creates stairs with #
A class that hits the DMM API
Python3 + pyperclip that rewrites the copied text
# 5 [python3] Extract characters from a character string
A code that corrects the yoon / sokuon (sokuon)
A program that plays rock-paper-scissors using Python
Get only the text from the Django form.
[LINE Messaging API] I want to send a message from the program to everyone's LINE
A python script that draws a band diagram from the VASP output file EIGENVAL
Let's do clustering that gives a nice bird's-eye view of the text dataset
[Django] Create a form that automatically fills in the address from the zip code
[Python] A program that finds the minimum and maximum values without using methods
[Python] A program that calculates the difference between the total numbers on the diagonal line.
[Python] A program that calculates the number of updates of the highest and lowest records
Is there a contradiction between the party that protects the people from NHK and the party that protects NHK from the people?