Write a program to check whether a string entered palindrome

Assignment Help Python Programming
Reference no: EM132112755

PYTHON

Program Strings

Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backwards. The words "mom, ‘dad", "noon" for instance are palindromes.

1. Write a function def isPalindrome to check if the string entered is a palindrome.

2. Write the main function to allow the user to enter the string and prints if it is a palindrome or not.

If anyone could help me with this, I would greatly appreciate it! Please don't use global variables..up to this point in the class my teacher has taught us, a few functions, lists, tuples, strings.

Reference no: EM132112755

Questions Cloud

Write a program that obtains the execution time of selection : Write a program that obtains the execution time of selection sort, bubble sort, merge sort, quick sort.
Write a function called decryptstring that accepts a cipher : Write a function called decryptstring that accepts a ciphertext byte string, a multiplier (m), and shift amount (k).
Write an expression that evaluates to a new list containing : Write an expression that evaluates to a new list containing all the elements from the one at index k through the one at index.
Write a statement that assigns 15 to the list element : Write a statement that assigns 15 to the list element whose index is k.
Write a program to check whether a string entered palindrome : Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backwards.
Write a recursive function that accepts a tuple : An 'array palindrome' is an array, which, when its elements are reversed, remains the same.
Prompt the user for the details of a credit card transaction : To practice UDP programming, including the use of the socket, bind, sendto, and recvfrom system calls.
Create a program that can display information : Create a program that can display information about the first ten elements in the periodic table. The periodic table of is a table of the chemical elements.
Compute the projects IRR and NPV : Compute the projects IRR and NPV. In addition, answer the following questions: Do you believe that there was sufficient financial information to make a solid

Reviews

Write a Review

Python Programming Questions & Answers

  Write a program to receive a series of numbers

Write a program to receive a series of numbers (including decimal) from the user until enter key is pressed. Process the input data and display number count, sum and average. Use proper data type and format.

  Create a python program to decide a small election

Create a Python program to decide a small election for the mythical country of Nerdvana. The method being used to decide that election was.

  Python errors

python errors, please correct them that are located in this program,

  Write a python program that performs simple encryption

You are required to write a Python program that performs simple encryption and decryption on strings entered by the user. To do so, you are to use one of the simplest and most widely known encryption techniques known as the Caesar Cipher

  Create mini-python projects or programs

Your assignment is to create mini-Python projects or programs and to run them in the Python-IDLE environment

  Same directory as your program

In the same directory as your program, create a file FF1, and write into it Hello (with a space at teh end). Similarly, create a file FF2, and write into it world! (with a new line, i.e., an ENTER at the end). And create a file DD and write into i..

  Generate a random ordered list of integers

In Python, the use the binary search functions given(recursive and iterative). Generate a random ordered list of integers and do a benchmark analysis.

  Arithmetic progression is a sequence of numbers

An arithmetic progression is a sequence of numbers in which the distance (or difference) between any two successive numbers if the same.

  Write a python program that generates a small web site

Choose a sport or club, and get some suitable input data.. If you play a sport yourself, see if you can get some data files for your sport.

  Apply struct for reading packet data

Topic: Python 3 - PCAP file analysis - Apply struct for reading packet's data, extract and hash the ICMP data portion of the packet

  Design a solution to highly-repetitive computational problem

IFB104 Building IT Systems Assignment Part A: Cityscapes. Design a solution to a highly-repetitive computational problem; Produce maintainable, reusable code

  Calculate the area of a rectangle and displays it

Write a python program that calculates the area of a rectangle and displays it - Display the variables length, width and area on screen using the print function

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd