Python Lab Practical-1
Python Lab Practical-1
import random
OUTPUT:
OUTPUT:
if number > 0:
result = "Positive"
elif number < 0:
result = "Negative"
else:
result = "Zero"
if num <= 0:
print("Please enter a positive integer")
elif num == 1:
print(0)
else:
n1, n2 = 0, 1
count = 0
if num > 0:
print("Fibonacci Series:", end = ' ')
while count < num:
print(n1, end=' ')
nth = n1 + n2
n1 = n2
n2 = nth
count += 1
OUTPUT:
5. Write a Python Program to Find ASCII Value of Character
OUTPUT:
import random
random.shuffle(deck)
OUTPUT: