Browse W
Alphabetical listing with fast deep pagination.
66619 items • Page 963 / 1333
Write a Python function list_col(df, col). Its first input is a pandas dataframe
Write a Python function list_col(df, col). Its first input is a pandas dataframe. Its second input is a string col that is the name (i.e., label) of one of the columns of the data…
Write a Python function named word_count that takes one str parameter: the input
Write a Python function named word_count that takes one str parameter: the input filename. The function shall open the input file, read its contents, and print out the line count,…
Write a Python function that implements Newton\'s method to compute and display
Write a Python function that implements Newton's method to compute and display the square root of a positive number x. The algorithm for Newton's method follows: Initialize guess …
Write a Python function that takes in two lists and calculates whether they are
Write a Python function that takes in two lists and calculates whether they are permutations of each other. The lists can contain both integers and strings. We define a permutatio…
Write a Python function that wil be called Encrypt1. It\'s input will be a plain
Write a Python function that wil be called Encrypt1. It's input will be a plaintext message plaintext and its output will be the ciphertext after substitution via the chart below.…
Write a Python function ‘Match_num’ which takes a number and a string as argumen
Write a Python function ‘Match_num’ which takes a number and a string as arguments and finds out if the string starts with the specific number. The function should return True if …
Write a Python method sort() to sort a LinkedList object in descending order of
Write a Python method sort() to sort a LinkedList object in descending order of the attribute _value. The code for the LinkedList class is shown below and also on the assignment w…
Write a Python method that takes two strings of five characters. The first strin
Write a Python method that takes two strings of five characters. The first string represents card values (ace (a), king (k), queen (q), jack (j), ten (t), or 2-9). The second stri…
Write a Python module called piglatin.py that contains functions for translating
Write a Python module called piglatin.py that contains functions for translating sentences between English and a variant of Pig Latin (see: http://en.wikipedia.org/wiki/Pig_Latin)…
Write a Python procedure to implement basic Newton\'s Method. The definition sta
Write a Python procedure to implement basic Newton's Method. The definition statement of your program should be def Newt(f, fp, x0, TOL, N): where f and fp are the function and de…
Write a Python program (called q2.py) that for a given change amount, reports th
Write a Python program (called q2.py) that for a given change amount, reports the maximum number of dollars followed by the number of quarters, dimes, nickels, and pennies. Hint: …
Write a Python program (hat reads three lists of positive integers into three se
Write a Python program (hat reads three lists of positive integers into three separate lists and creates a fourth list that is the intersection of the three lists. The intersectio…
Write a Python program (with comments) to do the following: a Define a function
Write a Python program (with comments) to do the following: a Define a function replace_abc (str1, char1) that takes a string str1 and a single character char1 as input. The funct…
Write a Python program 1. Change the size of the lists: MAX_ROW = 40 MAX_COL = 8
Write a Python program 1. Change the size of the lists: MAX_ROW = 40 MAX_COL = 80 ***program should work by only modifying the list size. 2. Choose a character for live cells, and…
Write a Python program \"daysInMonthXXXXX.py\" where XXXXX should be replaced by
Write a Python program "daysInMonthXXXXX.py" where XXXXX should be replaced by your ID. The program ask user to enter a accepts 2 inputs: a month and year. The program then calcul…
Write a Python program and make sure the program run properly Write a program to
Write a Python program and make sure the program run properly Write a program to help determine the likelihood of winning the lottery. People pick six integers from 1 to 59, inclu…
Write a Python program called LCS such that LCS(x, y, i, j) computes and returns
Write a Python program called LCS such that LCS(x, y, i, j) computes and returns the length of the longest common substring of x[0 : i + 1] and y[0 : j + 1], with the condition th…
Write a Python program plaifair.py as follows: def playfair(key, plaintext): # y
Write a Python program plaifair.py as follows: def playfair(key, plaintext): # your code here if __name__ == "__main__": # your code here The conditional statement above allo…
Write a Python program plaifair.py as follows: def playfair(key, plaintext): # y
Write a Python program plaifair.py as follows: def playfair(key, plaintext): # your code here if __name__ == "__main__": # your code here The conditional statement above allo…
Write a Python program that allows a user to play Rock - Paper - Scissors - Liza
Write a Python program that allows a user to play Rock - Paper - Scissors - Lizard - Spock against the computer. Have the program keep score of how many times each has won a round…
Write a Python program that asks for the user input to draw a circle that\'s cen
Write a Python program that asks for the user input to draw a circle that's centered on a canvas. The program: asks for the height of the canvas asks for the width of the canvas a…
Write a Python program that asks for the user input to draw a circle that\'s cen
Write a Python program that asks for the user input to draw a circle that's centered on a canvas. The program: asks for the height of the canvas asks for the width of the canvas a…
Write a Python program that can convert a Fahrenheit temperature to Celsius, or
Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversi…
Write a Python program that contains a function called count_inversions that wil
Write a Python program that contains a function called count_inversions that will count the number of inversions in a list of values. An inversion is a pair of items in a list tha…
Write a Python program that counts the frequencies of each word in a text. We de
Write a Python program that counts the frequencies of each word in a text. We define a word as a contiguous sequence of non-white-space characters. Different capitalizations of th…
Write a Python program that creates a dictionary containing course numbers and t
Write a Python program that creates a dictionary containing course numbers and the room numbers where the courses meet. The dictionary should contain the following key:value pairs…
Write a Python program that creates passwords. Ask the user to input their name.
Write a Python program that creates passwords. Ask the user to input their name. You will create two passwords for the user: one simply and one complex. The simple password will c…
Write a Python program that creates passwords. Ask the user to input their name.
Write a Python program that creates passwords. Ask the user to input their name. You will create two passwords for the user: one simply and one complex. The simple password will c…
Write a Python program that creates passwords. Ask the user to input their name.
Write a Python program that creates passwords. Ask the user to input their name. You will create two passwords for the user: one simply and one complex. The simple password will c…
Write a Python program that creates, uses, and tests a simple Abstract Data Type
Write a Python program that creates, uses, and tests a simple Abstract Data Type (ADT) that stores a sequence of values. The Sequence ADT will allow a programmer to create instanc…
Write a Python program that does the following: a. Assigns the following list to
Write a Python program that does the following: a. Assigns the following list to a variable called “sports”: [‘cricket’, ‘basketball’, ‘ping pong’, ‘squash’] b. Add ‘soccer’ to th…
Write a Python program that has three functions that do the following (identify
Write a Python program that has three functions that do the following (identify parameters and returned values for each function): A main() function that calls the other two funct…
Write a Python program that implements a simple number guessing game with multip
Write a Python program that implements a simple number guessing game with multiple questions / answers. The file name must be gameXXXXX.py where XXXXX is your student ID. For each…
Write a Python program that implements a simple number guessing game with multip
Write a Python program that implements a simple number guessing game with multiple questions / answers. The file name must be gameXXXXX.py where XXXXX is your student ID. For each…
Write a Python program that implements a simple number guessing game with multip
Write a Python program that implements a simple number guessing game with multiple questions / answers. The file name must be gameXXXXX.py where XXXXX is your student ID. For each…
Write a Python program that implements a simple number guessing game with multip
Write a Python program that implements a simple number guessing game with multiple questions / answers. The file name must be gameXXXXX.py where XXXXX is your student ID. For each…
Write a Python program that implements a simple number guessing game with multip
Write a Python program that implements a simple number guessing game with multiple questions / answers. The file name must be gameXXXXX.py where XXXXX is your student ID. For each…
Write a Python program that implements a simple number guessing game with multip
Write a Python program that implements a simple number guessing game with multiple questions / answers. The file name must be gameXXXXX.py where XXXXX is your student ID. For each…
Write a Python program that implements a simple number guessing game with multip
Write a Python program that implements a simple number guessing game with multiple questions / answers. The file name must be gameXXXXX.py where XXXXX is your student ID. For each…
Write a Python program that implements several functions. The functions you need
Write a Python program that implements several functions. The functions you need to provide are: doubly (x) this function takes a value x that you pass it then returns x doubled, …
Write a Python program that inputs a string representing a binary number (Os and
Write a Python program that inputs a string representing a binary number (Os and Is). First, your program should verify that it is indeed a binary number. That is. the program sho…
Write a Python program that prints Snowflake numbers.Snowflake numbers start wit
Write a Python program that prints Snowflake numbers.Snowflake numbers start with an integer (ask the user to enter one), if this number is even, divide it by two and the result i…
Write a Python program that prompts a user to select a shape for you to draw. Yo
Write a Python program that prompts a user to select a shape for you to draw. You should give the user at least three options. If the user selects a valid shape, draw the shape us…
Write a Python program that prompts the user for the number of classes taken and
Write a Python program that prompts the user for the number of classes taken and then for each class, the letter grade received (e.g. B+) and the number of credits (e.g. 3). Once …
Write a Python program that reads from a text file named maze.txt a position (i,
Write a Python program that reads from a text file named maze.txt a position (i, j) in the maze and a plan of the maze then it displays all the paths leading to existing exits in …
Write a Python program that reads from the keyboard a word and displays the encr
Write a Python program that reads from the keyboard a word and displays the encrypted version of that word. Assume that only the characters (A, D, I, R, Y ) are allowed in the inp…
Write a Python program that reads in Baseball statistics for players on various
Write a Python program that reads in Baseball statistics for players on various teams from a CSV file and display statistical information for a specified player. You will allow th…
Write a Python program that reads in a string S and an integer number N and encr
Write a Python program that reads in a string S and an integer number N and encripts S based on N The process of encryption is Step 1: reverse the first N characters of S Step 2: …
Write a Python program that reads in a string S and an integer number N and encr
Write a Python program that reads in a string S and an integer number N and encripts S based on N The process of encryption is Step 1: reverse the first N characters of S Step 2: …
Write a Python program that reads in two integers and displays the following: a.
Write a Python program that reads in two integers and displays the following: a. the sum of the two numbers b. the product of the numbers c. the average of the two numbers d. the …