Access over 20 million homework & study documents

search

Activity 5

Content type
User Generated
Rating
Showing Page:
1/10

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/10

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/10

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 10 pages?
Access Now
Unformatted Attachment Preview
STUDENT PROFILE NAME OF STUDENT: RUPESH PRASAD REGISTRATION NUMBER: 21BIT0420 PROGRAM: BSC101E-COMPUTER PROGRAMMING: PYTHON SCHOOL: SCHOOL OF INFORRMATION TECHNOLOGY AND ENGINEERING FACULTY: Dr. SHUNMUGA PERUMAL P ACTIVITY: 5 1 Execute the following python codes and write your observation about the corresponding outputs: CODE: OUTPUT: CODE: OUTPUT: CODE: OUTPUT: CODE: OUTPUT: 2 What is ‘phase of a complex number’? Write a python code to find the phase of a given complex number. Test the program with many inputs and records the outputs. Phase: Every nonzero complex number can be expressed in terms of its magnitude and angle. This angle is known as phase. CODE: OUTPUT: 3 Write a python code to find the addition and subtraction of two given complex number. CODE: OUTPUT: 4 Which is typecasting in python? Give example for type casting with integer, float, string data types. Type casting is a method used to change the variables/ values declared in a certain data type into a different data type to match the operation required to be performed by the code snippet. In python, this feature can be accomplished by using constructor functions like int(), string(), float(), etc. Types of type casting in python. 1. Implicit Type casting CODE: OUTPUT: 2. Explicit Type casting CODE: OUTPUT: 5 Write python code to find the slope of a line with given coordinates. CODE: OUTPUT: Name: Description: ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Goes above and beyond expectations!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4