Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It's a python and code to count and print out characters I cannot figure out what errors are please help me to fix the codes.

It's a python and code to count and print out characters

I cannot figure out what errors are please help me to fix the codes.

def creat_dict(words_list): alpha_dict = () alpha_upper = list("abcdefghijklmnopqurstuvwxyz".upper()) #print(alpha_upper) for elem in alpha_upper: alpha_dict(elem) = (0, []) #print(alpha_dict) for elem in words_list: alpha_dict(elem[0])[0] += 1 alpha_dict(elem[0])[1].append(words_list.index(elem)) return alpha_dict creat_dict(['Abject' , 'Yoke', 'Aberration'])

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions