Requirement: 1. Please use Python 3 2. You cannot import any module 3. The progr
ID: 662595 • Letter: R
Question
Requirement:
1. Please use Python 3
2. You cannot import any module
3. The programs must be solved by Recursion
4. You must follow by 1~3. I post this question before, but got incorrect answer.
---------------------------------------------------------------------------------
Question:
1.Write a program that asks the user for a binary string that also contains x's. A binary string is a sequence of 1's and 0's. Your program should display all possible binary strings where the x's can be replaced with either 1's or 0's.
a.Examples
Enter a binary string: 1011
Enter a binary string: 10x0
Enter a binary string: xx0x
Explanation / Answer
def InputString:
binary =print("Enter a binary string:: ")
n=int(binary)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.