Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi I am writing a python program to print out look like this (my code is below) import numpy as np iris = np.genfromtxt('/Users/superman/Downloads/words_file.txt', delimiter=',',
Hi I am writing a python program to print out look like this (my code is below)
import numpy as np iris = np.genfromtxt('/Users/superman/Downloads/words_file.txt', delimiter=',', dtype=str) iris=iris.reshape(300,1)
I am stuck from here
1.I have to add lower case right next to Uppercase of word and
2. I have to use dictionary to count (from a to z) how many words in there....also for this question I can import numpy.
3.At the end of dictionary I have to add length of words
for instance Abject counts as 6 lengths. Please help me to solve this problem
In [601: import numpy as np iris np. genfrontxt('/Users/yanghaneul/Downloads/words-file.txt', iris-iris.reshape (300,1) iris delimiter-.., dtype-str) Out [ 601: array'Abject', I 'Aberration'1, 'Abjure, [ 'Abnegation' ], I 'Abrogate'1 'Abscond', I 'Abstruse', [ 'Accede, 'Accost', 'Accretion'], Acumen', I'Adamant', [ 'Admonish'], [ 'Adumbrate'], Adverse'1, 'Advocate', ['Affluent, [ 'Aggrandize'], [ 'Alacrity'], 'Abject' 'abject 61 ['Aberration 'aberration 101 ['Abjure' 'abjure' 61Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started