Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions

Question

Understand why customers complain.

Answered: 1 week ago