Session 2 - Operators + If-Else + Loops | CampusX Data Science Mentorship Program | 8th Nov 2022
HTML-код
- Опубликовано: 8 июл 2024
- Session 2 - Operators + If-Else + Loops | CampusX Data Science Mentorship Program | 8th Nov 2022
Enroll in this Programme from our Website - learnwith.campusx.in/
Course Website Link - campusx1040.graphy.com/s/prev...
----------------------------------------------------------------------------------------------------------------------------------------------
Code - colab.research.google.com/dri...
Task Link - colab.research.google.com/dri...
----------------------------------------------------------------------------------------------------------------------------------------------
00:00:00 - Start of Session
00:01:47 - Plan of Action
00:07:28 - Doubt about today's session
✒ Topic - Operators
00:09:02 - Operators
00:10:29 - Arithmetic Operators
00:13:08 - Relational Operators
00:14:44 - Logical Operators
00:16:30 - Bitwise Operators
00:25:30 - Assignment Operators
00:28:22 - Membership Operators
00:31:45 - Doubts about operators
00:35:42 - Solving a problem using Operators
✒ Topic - If Else
00:43:08 - If Else
01:13:48 - Doubt clearance
✒Topic 3 - Modules in Python
01:14:56 - Modules in Python
01:17:21 - Math module
01:19:49 - keyword module
01:20:34 - Random module
01:21:29 - datetime module
01:23:55 - doubt clearance
✒ Topic 4 - Loops in Python
01:24:48 - introduction
01:29:25 - while loop
01:35:50 - doubt clearance about while loop
01:36:25 - while loop with else
01:38:18 - Build amazing guessing game
01:47:32 - Doubt clearance
01:48:05 - for loop
01:54:58 - Solve a problem
02:00:00 - End the session
बस एक ही बात कहना चाहता हूं आप अच्छा काम कर रहे हो
00:00:00 - Start of Session
00:01:47 - Plan of Action
00:07:28 - Doubt about today's session
✒ Topic - Operators
00:09:02 - Operators
00:10:29 - Arithmetic Operators
00:13:08 - Relational Operators
00:14:44 - Logical Operators
00:16:30 - Bitwise Operators
00:25:30 - Assignment Operators
00:28:22 - Membership Operators
00:31:45 - Doubts about operators
00:35:42 - Solving a problem using Operators
✒ Topic - If Else
00:43:08 - If Else
01:13:48 - Doubt clearance
✒Topic 3 - Modules in Python
01:14:56 - Modules in Python
01:17:21 - Math module
01:19:49 - keyword module
01:20:34 - Random module
01:21:29 - datetime module
01:23:55 - doubt clearance
✒ Topic 4 - Loops in Python
01:24:48 - introduction
01:29:25 - while loop
01:35:50 - doubt clearance about while loop
01:36:25 - while loop with else
01:38:18 - Build amazing guessing game
01:47:32 - Doubt clearance
01:48:05 - for loop
01:54:58 - Solve a problem
superb way of teaching....
@41:00 example can be solved.
a=input('Enter a 3 digit integer ')
b=int(a[0])+int(a[1])+int(a[2])
print(b)
There are some teacher who changes your view and makes teaching interesting and he's the one
Apne ye course purchase Kiya he ???
again an amazing session to master the basics of python .. 🙌
You are really a perfect teacher, I have been learning coding since 2008 but didnot learn yet to be a good programmer and hope this time I will definitely learn programming. InsaAllah
Thank You Sir, for making it very easy and enjoyable.♥
Im learning alot from u thanks alot sirr❤ stay blessed
I m learning slow, since I m working but it is helping me alot
paid course se jyada acha content aap ka sir
masai walo se toh achac hi hai
Great session
17:45
Binary 011 3 in decimal
Binary 110 6 in decimal
Correct
finished watching and coding
great session sir #DAY2
# correct
import random as r
a=r.randint(1,100)
c=0
while True:
x=int(input ("guess a number "))
if x==a:
print("correct ",c+1)
break
elif x
Sir love ho gaye ap sir ap bohat acha smajha tay hain
nice explanation
day 2 of learning thank you so much bhaiyya itna achha padhane ke liye hamesha kush raho apki har dream puri ho 🤎
bro guess vala print hoa ab ka sahi sa>
personal bookmark
35:40
53:06
Sir you have mentioned the time stamp in description please put this in video too, it would be helpful for us to resume in one click instead of going through the description again and again
zindagi shorcut se nahi chalti bhaiya!!
Great
2=10 and 3=11
a= 4
b=5
c=3
Min no is showing 5
1:06min
Code
If a
run again..in my google colab output is coming 3, that is correct.
22:48
XOR
1 and 1 are 0
0 and 0 are 0
0 and 1 are 1
1 and 0 are 1
Bhaiya Mera jupyter hai aur use modules show nahi kar raha hai!
Solution kya hoga?
Nice
Solution of Dogs and chicken Problem:
#Input number of heads from user
heads = int(input("Enter number of heads : "))
#Input number of legs from user
legs = int(input("Enter number of legs : "))
#Total legs of a dog must be equal to the number of heads multiply by 4
total_legs_for_dog = heads * 4
#Total legs of a chiken must be equal to the number of heads multiply by 2
total_legs_for_chiken = heads * 2
#If number of legs equal to the head multiply by 4 then the animal is dog
if (legs == total_legs_for_dog):
print (f"{heads} dogs")
#If number of legs equal to the head multiply by 2 then the animal is chicken
elif (legs == total_legs_for_chiken):
print (f"{heads} chikens")
# else check how many chicken and dogs are there
else:
if (legs != total_legs_for_dog or legs!=total_legs_for_chiken):
#subtract number of legs from total_legs
Legs = total_legs_for_dog - legs
total_chikens = Legs//2
total_dogs = heads -total_chikens
print (f"chikens : {total_chikens} and dogs {total_dogs}")
Hi Nitish , I started with the Python series
how to get the Assignment problems ?
isme 3 ki binary wrong hai 011 hogi
Sir time-stamp add kar dena video main please 🥺
Yesterday question solution:
Write a program that will tell the number of dogs and chicken are there when the user will provide the value of total heads and legs.
heads=int(input("Enter the number of heads: "))
legs=int(input("Enter the number of legs: "))
chickens=(legs-heads-heads)/2
dogs=legs-heads-(3*chickens)
print("There are ", chickens, "chickens & ", dogs, "dogs are present.")
@@spynom3070 I got it thanks
You know the solution?
@@divyangjha8623 your is correct bro. have confident over your answer 🤣🤣🤣
@@spynom3070 😅😅😅
i did not understand guessing game, please anyone guide me.
1:58:38 This logic is wrong right? as it would be 10% or previous year + previous year pop = current.
Sir population question solution is wrong. As per question pop is increasing @10% each year. Current pop is 10000 then previous years pop should be 9090.9090 not 9000.
can anybody provide me solution for below question:
'''Given the height, width and breadth of a milk tank,
you have to find out how many glasses of milk can be obtained? Assume all the inputs are provided by the user.
Input:
Dimensions of the milk tank
H = 20cm, L = 20cm, B = 20cm
Dimensions of the glass
h = 3cm, r = 1cm'''
this could be solved knowing the volume contained by the tank and volume contained by glass, find the volume and use division operator
bhai koi hai jo help kare ga kaha pe questions hai practice ke liye websits pe to nhi mil raha hai
Awesome ❤️❤️
Sir plzz sare video public kr do
problem in 10% population question. (sir is decreasing 10% but it should be the other way around...it should be like 10000/1.1)
because according to sir...9000 + 10% = 10000 which is wrong....9000 + 10% is 9900
@@MrAshish3437 Yes you are right.
sir ek Q.He ap jis pe code likh rhe wo code he kya bcz me pycharm pe code likh rha hu problem aa rhi he aap k batye huye code likhne me to thode plz ise clear kr do
python idle
whenever i print guess number they are stuck in while or if loop any one help
becuase you skip step to increment iterartion's = i's value -->> i +=1 , which cause the program to stay in loop for infinite time, till the given condition is meet or satisfied
59:00 Beta tumse na ho paye ga 🤣🤣🤣🤣
please criticize this code for printing the sum of all digits of a number: 40:50
#using while loop :-
x=y=0
n = int(input())
b = str(n)[0]
while x
campusx team : is the below login correct
x =int(input('Enter a three digit number: '))
num_1 = x//100
num_2 = ((x%100)//10)
num_3 = (((x%100)%10)//1)
num = num_2+num_1+num_3
print('Sum of the three digit number ',x,' is',num)
*what'app grp banana hai toh no send karo guys*
Yes bro i m intrested
bhai apnaa mail id chord do yaha pe log mail pe bhej dengee apko bro
have you taken paid courses as well?