Join the conversation
x = 12
y = 11if x == y:
print("x is equal to y")
elif x != y:
print("x is not equal to y")
Reply
c=int(input("enter a number"))
print(c)
if c > 0:
print("c is positive")
elif c < 0:
print("c is negative")
else:
print("c is zero")
Reply
if x==10:
print("x is positive")
elif x!=10:
print("x is not negative")
else:
print("x is ten")
return "x is positive"
Reply
Assignment
# #fruits = ("apple","bannana")
# # for x in fruit:
# # print(x)
# # for x in fruits[0]:
# # print(x)
# # a = 1
# # while a <5:
# # a += 3
# # print(a)
# # a = 1
# # while a b:
# # print("a is greater than b")# # a=5
# # b=4
# # if a<b>b)
# a=5
# b=3
# print(a<b>=b)# a=5
# b=4.5
# print(a<=b)a=4
b=4.5
print(a<=b)
Reply
MashAllah Ammar bhai thank you so much for guiding in a way students easily understand. working for the last 6 hours without being bored and now fajar time, still motivated to learn more. Alhamdulillah 💗
Reply
GOING GOOD SO FOR IT'S 2:04AM AT PAKISTAN AND ENJOYING YOUR VIDEOS GRT you have put grt effort into this course thanks baba
Reply
while loop b aj aya smg. aur b videos dkhi thi youtube p itni achi understanding ni hui thi
Reply
thank you sir. good explanation of 'for loop'
Reply
Assignment: # Example 2: 10 to 20 even numbers print karo:
i = 10
while i <= 20:
if i % 2 == 0:
print(i)
i += 1
Reply
Assignment:
# Example 1: 1 to 10 numbers print karofor i in range(1, 11):
print(i)
Reply