Question: I want to make pythan code for this text file input these text file and then each word put in array[] and group that name

I want to make pythan code for this text file

input these text file and then each word put in array[]

and group that name

text file is

alice: alice users: alice, bob, charlie project1: alice, bob admins: root

for example alice is one group, so if i call alice, alice[0] is alice

and also if i call user, user[0] is alice, user[1] is bob, and user[2] is charlie,

others are also same with that we did

can you tell me how to make python code like that groups?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!