Question: What does the following code do ? logins = pwashing jhill tshah usernames = logins . split ( ) Removes the last username in the

What does the following code do?
logins = "pwashing jhill tshah"
usernames = logins.split()
Removes the last username in the logins variable and stores the string in the usernames variable
Splits a string variable called logins into a list of strings and stores it in the variable usernames
Splits a string variable called logins into single characters
Removes the blank spaces that split the usernames in the variable logins and stores the string in the variable usernames

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!