Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am not to sure how to find a palidrome that is in a text file or go throught the text file. I am new

I am not to sure how to find a palidrome that is in a text file or go throught the text file. I am new to phython. if can help would be great. image text in transcribed
image text in transcribed
Find all the palindromes in the attached text file, which is a simple list of words. Setup: 1. Make a folder somewhere. If you are on the VDI, make the folder directly on C:, for example c:\PyWork 2. Save this attached wordlist file in the that folder 3. In IDLE: Import os os.chdiric:\\PWWork) # the full pathname of the folder you're using . os.listdiro # this should list the files in the folder IDLE is looking at, you should see the folder there. words list(open('lawler_wordlist.txt') words' is now a list of all the words in the file 4. Note the last character in each word is the newline Format Run Options Window Help podromes.py - Users/wendylemus Desktop IDLE File Eoll 8168 Pythos 3.8.1 Cel . 3.8.11 . Der 18 2019, ..571 darwin Pract rewardeerd words If liter ature) pythorint reward int that pristino Palio una cola Indros 1990-2001

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions