[Type C]Q1. Write a function that takes the amount in dollars and converts it to rupees. Create a function in the void as well as a non-void form.

What are the python functions?

A function is a set of statements that take inputs, do some specific computation and produces output. 

You can pass data, known as parameters, into a function.

Syntax of function in python:

def function_name(parameters):

Program code:


Rs 700
Rs 3500
Rs 3500

Basic use of python function is demonstrated in above program.

To view all the lessons in chapter 1: http://computertutor.in/class-12-computer-science/chapter-3/

To view entire class 12 computer science study material: http://computertutor.in/resources/

You cannot copy content of this page