Question: Just the second pic in python This set of questions will deal with defining your own functions to complete the question descriptions Question 1 Write

 Just the second pic in python This set of questions will
deal with defining your own functions to complete the question descriptions Question
Just the second pic in python

This set of questions will deal with defining your own functions to complete the question descriptions Question 1 Write a function called check_pswd. The function will take 2 arguments. The first is a username, the second is a password. The function should return True it the username matches the password. In the lists given below matching indecies belong to eachother. For example passwords belongs to usernames[0]. The function should return false if they do not match. The function should also return false if the username or password does not exist in the list. You can redefine the lists inside your function In 12111 usernames - Anne, Marrie, 'Bos', 'stephanie Marks) passwords - 1 123456', 'very secure', 'B', '123456', 'qyrjut1 In 12311 your code goes here det check paydo username, password) inde for in rangetlen(usernames) If username usernames[1] ind- break return false i passwords and password) return Tree return false print("check poudt Anne'.'123456)..check powd Anne,123456')) peinticheck powd'Boss'. "123456"check powde','123456) Question 1 Write a function called calc_dist. The function will take 2 arguments. Both arguments will be a tuple with 2 elements for their x and y position (4.6). The function should return the euclidean distance between the 2 points in it your code here

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!