Write a python program that will multiply the array a with


Assignment

Program One:

Write one Python program to calculate the factorial of a number (n). Your program must have two functions to calculate the factorial. i) with recursion ii) without recursion (while loop or for loop). (hint the factorial is the product of integers below it)

Example: the factorial of 5 = 1x2x3x4x5 = 120.

Program Two:

Write a Python program that will store the following in a string variable called message:

"Perl and Python programming languages are both cross platform in nature and can be used on Windows, Linux/Unix and Mac OS systems. This broad-based capability makes the Perl/Python Scripting languages highly useful in the field of technology. Both languages are highly capable in stream editing of data, data manipulation and parsing, which are programming capabilities required in IT Forensics."

1) Count how many times the word Python is found in the variable message.
2) Determine/find the location(s) of the word Python in the variable message.
3) Apply 2 of the methods in table 3.1 (in the Python Book) to the variable message.

Print the output the results of each of the above 3 points

Program Three:

Write a Python program that will multiply the array A with the array B (see below). (note, you need to determine if you will multiply (A x B) or (B x A)).

444_Matrix.jpg

For this assignment, you have to submit:

• the Python code (.py) file
• the design and test document file.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Write a python program that will multiply the array a with
Reference No:- TGS02625595

Expected delivery within 24 Hours