0% found this document useful (0 votes)
10 views11 pages

Python Basics Module A-2

The document contains multiple code snippets demonstrating basic Python functionalities, including calculating square roots using the math module, displaying today's date, and a simple function to greet the user. Each code section is repeated multiple times. The focus is on understanding the output of these Python codes.

Uploaded by

Kavinaya V
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views11 pages

Python Basics Module A-2

The document contains multiple code snippets demonstrating basic Python functionalities, including calculating square roots using the math module, displaying today's date, and a simple function to greet the user. Each code section is repeated multiple times. The focus is on understanding the output of these Python codes.

Uploaded by

Kavinaya V
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Python Basics

Module A-2
Examine The Output of The Code
#sqrt method
print('Number\t\tSquare Root')
import math
for i in range(0,22,2):
print(i,'\t\t{:.4f}'.format([Link](i)))
Examine The Output of The Code
#sqrt method
print('Number\t\tSquare Root')
import math
for i in range(0,22,2):
print(i,'\t\t{:.4f}'.format([Link](i)))
Examine The Output of The Code
#sqrt method
print('Number\t\tSquare Root')
import math
for i in range(0,22,2):
print(i,'\t\t{:.4f}'.format([Link](i)))
Examine The Output of The Code
#sqrt method
print('Number\t\tSquare Root')
import math
for i in range(0,22,2):
print(i,'\t\t{:.4f}'.format([Link](i)))
Examine The Output of The Code
from datetime import date
print("Today's date is",[Link]())
Examine The Output of The Code
#helloworld
def helloWorld():
x=input('enter name:')
print('Hello World, my name is',x)
helloWorld()
Examine The Output of The Code
#helloworld
def helloWorld():
x=input('enter name:')
print('Hello World, my name is',x)
helloWorld()
Examine The Output of The Code
#helloworld
def helloWorld():
x=input('enter name:')
print('Hello World, my name is',x)
helloWorld()
Examine The Output of The Code
#helloworld
def helloWorld():
x=input('enter name:')
print('Hello World, my name is',x)
helloWorld()
Examine The Output of The Code
#helloworld
def helloWorld():
x=input('enter name:')
print('Hello World, my name is',x)
helloWorld()

You might also like