Answer:
Written in Python:
num = int(input("Number: "))
strnum = str(num)
if len(strnum) !=5:
print("Length must be 5")
else:
if(strnum[::-1] == strnum):
print("The number is a palindrome.")
else:
print("The number is NOT palindrome.")
Explanation:
This prompts user for input
num = int(input("Number: "))
This converts user input to string
strnum = str(num)
This checks the length of the string
if len(strnum) !=5:
print("Length must be 5") If length is not 5, this prompt is printed
else:If otherwise
if(strnum[::-1] == strnum): The compares the string reversed with the original
print("The number is a palindrome.") If both are the same, this line is executed
else:
print("The number is NOT palindrome.") If otherwise, this line is executed
You can get more points by answering questions, and completing challanges.
I hope this helps!
-LizzyIsTheQueen
The python program that creates a Bankaccount class for a Bank ATM that is made up of the customers and has a deposit and withdrawal function is given below:
<h3>Python Code</h3>
# Python program to create Bankaccount class
# with both a deposit() and a withdraw() function
class Bank_Account:
def __init__(self):
self.balance=0
print("Hello!!! Welcome to the Deposit & Withdrawal Machine")
def deposit(self):
amount=float(input("Enter amount to be Deposited: "))
self.balance += amount
print("\n Amount Deposited:",amount)
def withdraw(self):
amount = float(input("Enter amount to be Withdrawn: "))
if self.balance>=amount:
self.balance-=amount
print("\n You Withdrew:", amount)
else:
print("\n Insufficient balance ")
def display(self):
print("\n Net Available Balance=",self.balance)
# Driver code
# creating an object of class
s = Bank_Account()
# Calling functions with that class object
deposit()
s.withdraw()
s.display()
Read more about python programming here:
brainly.com/question/26497128
#SPJ1
Answer:
The answer is started from the last fourth line i.e., a series of
Explanation:
Software seems to be the set of linked commands which inform the system or smartphone what tasks to do as well as how to execute.
In the simple words, the software is the set of the program that direct the following smartphones and also the systems that how they work and how to perform these works accurately.
So, the following are the reasons that describe the other options that are not appropriate for software.