Тёмный
No video :(

python assignment1 

MANISH KUMAR
Подписаться 21 тыс.
Просмотров 2,3 тыс.
50% 1

In this video, you will get a set of questions to solve. Practice more to be a good engineer.
Directly connect with me at:- topmate.io/man...
Q1. Define a variable of all the labours and print the name of each labour.
Condition:-
Labour names are:- Mahesh, Mithilesh,Ramesh, Sumesh
labour variable should be something like this 1st_labour, 2nd_labour and so on.
Q2. Define a variable of all the labours daily wage and print the name and wage of each labour.
Condition:-
Labour names are:- Mahesh, Mithilesh,Ramesh, Sumesh and wages are 500,400,400,300 respectively
labour variable should be something like this 1st_labour_name,1st_labour_wage, 2nd_labour_name,
2nd_labour_wage and so on.
You are bound to use string formatting
Q3. I want to print this paragraph and its line number from which this paragraph is printing
""" Programming aasan hai. We are going to learn this in depth. While learning we have to make sure that
we are implemeting all the logics by ourself. The aim here is to build our "4 BHK" house with the
help of 'Python programming'. We have total land is of \100 ft * 100ft /, to colmplete the house
we have total 6 labours with 'different skill set like "\\ building wall or building roof \\".
I have to print this paragraph as it is given here."""
Condition:-
You can't use triple quote.
Triple quote at starting is also a part of paragraph.
Q4. When do we get NameError?
Q5. Python is a high level language. What does that mean by high level?
Q6. What is compiled and Inetrpreted language, list a few?
Q7. Get all varibales address from RAM and you find if something is similar?
Directly connect with me at:- topmate.io/man...
Discord channel:- / discord
For more queries reach out to me on my below social media handle.
Follow me on LinkedIn:- / manish-kumar-373b86176
Follow Me On Instagram:- / competitive_gyan1
Follow me on Facebook:- / manish12340
My Second Channel -- / @competitivegyan1
Interview series Playlist:- • Interview Questions an...
My Gear:-
Rode Mic:-- amzn.to/3RekC7a
Boya M1 Mic-- amzn.to/3uW0nnn
Wireless Mic:-- amzn.to/3TqLRhE
Tripod1 -- amzn.to/4avjyF4
Tripod2:-- amzn.to/46Y3QPu
camera1:-- amzn.to/3GIQlsE
camera2:-- amzn.to/46X190P
Pentab (Medium size):-- amzn.to/3RgMszQ (Recommended)
Pentab (Small size):-- amzn.to/3RpmIS0
Mobile:-- amzn.to/47Y8oa4 ( Aapko ye bilkul nahi lena hai)
Laptop -- amzn.to/3Ns5Okj
Mouse+keyboard combo -- amzn.to/3Ro6GYl
21-inch Monitor-- amzn.to/3TvCE7E
27-inch Monitor-- amzn.to/47QzXlA
iPad Pencil:-- amzn.to/4aiJxiG
iPad 9th Generation:-- amzn.to/470I11X
Boom Arm/Swing Arm:-- amzn.to/48eH2we
My PC Components:-
intel i7 Processor:-- amzn.to/47Svdfe
G.Skill RAM:-- amzn.to/47VFffI
Samsung SSD:-- amzn.to/3uVSE8W
WD Blue HDD:-- amzn.to/47Y91QY
RTX 3060Ti Graphic card:- amzn.to/3tdLDjn
Gigabyte Motherboard:-- amzn.to/3RFUTGl
O11 Dynamic Cabinet:-- amzn.to/4avkgSK
Liquid cooler:-- amzn.to/472S8mS
Antec Prizm FAN:-- amzn.to/48ey4Pj

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 37   
@YASH-kc5qb
@YASH-kc5qb Месяц назад
Task 3 Solution print(f'\""" Programming aasan hai.We are going to learn this in depth. While learning we have to make sure that we are implemeting all the logics by ourself. The aim here is to build our "4 BHK" house with the help of \'Python programming\'.We have total land is of \\100 ft * 100ft /, to colmplete the house we have total 6 labours with \'different skill set like "\\\ building wall or building roof \\". \tI have to print this paragraph as it is given here."""')
@amanpirjade9
@amanpirjade9 7 месяцев назад
Make video on etl pipeline in python
@Timezonee
@Timezonee 3 месяца назад
Since python variable can't start with numbers how to assign. Or we can start like this. _1labour
@manish_kumar_1
@manish_kumar_1 3 месяца назад
Exactly isliye hi wo questions diya tha. We can not create variable like that
@Timezonee
@Timezonee 2 месяца назад
@@manish_kumar_1 thankyou for answering
@hritikapal683
@hritikapal683 4 месяца назад
#Question 1 Labour1 = "Mahesh" Labour2 = "Mithilesh" Labour3 = "Ramesh" Labour4 = "Sumesh" print(f"labour names are first_labour: {Labour1} second_labour: {Labour2} third_labour: {Labour3} fourth_labour: {Labour4}") #Question 2 Labour1_wage= 500 Labour2_wage = 400 Labour3_wage = 400 Labour4_wage = 300 print(f"labour names and wages are first_labour:{Labour1} first_labour_wage:{Labour1_wage} second_labour:{Labour2} second_labour_wage:{Labour2_wage} third_labour:{Labour3} third_labour_wage:{Labour3_wage} fourth_labour:{Labour4} fourth_labour_wage:{Labour4_wage} ") #Question3 print(f" { """ 1.Programming aasan hai. We are going to learn this in depth. While learning we have to make sure that 2. we are implemeting all the logics by ourself. The aim here is to build our "4 BHK" house with the 3. help of 'Python programming'. We have total land is of \100 ft * 100ft /, to colmplete the house 4. we have total 6 labours with 'different skill set like "\\ building wall or building roof \\" 5. I have to print this paragraph as it is given here.""" }") #Question4 we get NameError if we do not defined the variable for example print(Labour5) #Question5 High level language is referred to the source code which is written by human in their understanding language. #Question6 A COMPLIED LANGAUGE is one which complies the entire source code in one go during run time whereas an INTERPRETED LANGUAGE is one which the interprets the entire source line by line. C and c++ supports are complied language whereas Python and Javascript on the other hand interpreted language #Question7 print(id(Labour1),id(Labour2),id(Labour3),id(Labour4),id(Labour1_wage),id(Labour2_wage),id(Labour3_wage),id(Labour4_wage))
@Prahalladh
@Prahalladh 7 месяцев назад
Thanks for these Manish jii
@Roshan-jc7tu
@Roshan-jc7tu 2 месяца назад
Nameerror apprears when variable is not defined.
@junaid20950
@junaid20950 7 месяцев назад
Q3 is not working, I am banging my head Manish Please guide
@Capital_Craze_Channel
@Capital_Craze_Channel 7 месяцев назад
first Viewer
@asifquasmi4538
@asifquasmi4538 5 месяцев назад
labour1 = "Mahesh" labour2 = "Mithlesh" labour3 = "Ramesh" labour4 = "Suresh" Mahesh = 500 Mithlesh = 400 Ramesh = 400 Suresh = 300 print(f"Name of all the labours are {labour1} {labour2} {labour3} {labour4}") print(f"Daily wages of each labourse are {labour1}: {Mahesh}, {labour2}: {Mithlesh}, {labour3}: {Ramesh}, {labour4}: {Suresh}")
@ponnekantimahesh1907
@ponnekantimahesh1907 5 месяцев назад
Here is my answer sheet , #Q1 labour_1st="Mahesh" labour_2nd="Mithilesh" labour_3rd="Ramesh" labour_4th="Sumesh" print(f"labour names are 1st_labour: {labour_1st} 2nd_labour: {labour_2nd} 3rd_labour: {labour_3rd} 4th_labour: {labour_4th}") #Q2 labour_1st_wage=500 labour_2nd_wage=400 labour_3rd_wage=400 labour_4th_wage=300 print(f"labour names are 1st_labour_name: {labour_1st},1st_labour_wage: {labour_1st_wage} 2nd_labour_name: {labour_2nd},2nd_labour_wage: {labour_2nd_wage} 3rd_labour_name: {labour_3rd},3rd_labour_wage: {labour_3rd_wage} 4th_labour_name: {labour_4th},4th_labour_wage: {labour_4th_wage}") #Q3 print(f"\"\"\" 1.Programming aasan hai. 2.We are going to learn this in depth. 3.While learning we have to make sure thatwe are implemeting all the logics by ourself. 4.The aim here is to build our \"4 BHK\" house with the help of \'Python programming\'. 5.We have total land is of \\100 ft * 100ft /, to colmplete the house we have total 6 labours with \'different skill set like \"\\\\ building wall or building roof \\\\\". 6.I have to print this paragraph as it is given here. \"\"\" ") #Q4. When do we get NameError? print(f"Ans: when we typed variable name incorrectly/undefined") #Q5. Python is a high level language. What does that mean by high level? print(f"Ans: High level language means it is human understandable format unlike binarycode/machine language ") #Q6. What is compiled and Inetrpreted language, list a few? print(f"An interpreted language, on the other hand, is one in which code written by the programmer is translated into machine code and executed line by line by another program called an interpreter. ex:python,PHP /n A compiled language is one in which code written by the programmer (source code) is translated into machine code (binary code) before it is run.ex:c,c++ ") #Q7.Get all varibales address from RAM and you find if something is similar? print(id(labour_1st),id(labour_2nd),id(labour_3rd),id(labour_4th),id(labour_1st_wage),id(labour_2nd_wage),id(labour_3rd_wage),id(labour_4th_wage)) print(f"observation: where wage is same RAM address ") Thanks @MANISH KUMAR
@sinhadeepak4101
@sinhadeepak4101 7 месяцев назад
Q1. Define a variable of all the labours and print the name of each labour. Condition:- Labour names are:- Mahesh, Mithilesh,Ramesh, Sumesh labour variable should be something like this 1st_labour, 2nd_labour and so on. Ans :- labours = ["Mahesh", "Mithilesh", "Ramesh", "Sumesh"] for i, labour in enumerate(labours, start=1): print(f"{i}th Labour: {labour}")
@manish_kumar_1
@manish_kumar_1 7 месяцев назад
Not correct. You have to create 4 variables mentioned above in condition. Also don't keep names in list and then iterate just to print. Read the question carefully
@sinhadeepak4101
@sinhadeepak4101 7 месяцев назад
​@@manish_kumar_1 labours = ["Mahesh", "Mithilesh", "Ramesh", "Sumesh"] for i, labour in enumerate(labours, start=1): print(f"{i}st_Labour: {labour}") now it was correct sir....
@manish_kumar_1
@manish_kumar_1 7 месяцев назад
​@@sinhadeepak4101 why don't you run your script by yourself This is what your output will be:- 1st_Labour: Mahesh 2st_Labour: Mithilesh 3st_Labour: Ramesh 4st_Labour: Sumesh And this is a print statement not a variable bhai. Please aap basics ko samjho print statement and variable are not same
@VaanisToonWorld-rp5xy
@VaanisToonWorld-rp5xy 7 месяцев назад
@@manish_kumar_1 Sir, variable names not taking starting as 1st number value, hence creating E.g. labour_name_1st
@sinhadeepak4101
@sinhadeepak4101 7 месяцев назад
@@manish_kumar_1 okk got it...
@PrashantKumar-wz3ex
@PrashantKumar-wz3ex 6 месяцев назад
Sir question no 3 solve nhi ho pa rha h pls tell the answer
@hritikapal683
@hritikapal683 7 месяцев назад
Sir questions?
@manish_kumar_1
@manish_kumar_1 7 месяцев назад
updated
@vaibhavdimri7419
@vaibhavdimri7419 7 месяцев назад
Sir description mai questions nhi hai
@manish_kumar_1
@manish_kumar_1 7 месяцев назад
Updated
@vaibhavdimri7419
@vaibhavdimri7419 7 месяцев назад
Thank you sir
@ChetanSharma-oy4ge
@ChetanSharma-oy4ge 7 месяцев назад
Description mei nhi h kuch
@manish_kumar_1
@manish_kumar_1 7 месяцев назад
Update kar diya. Thanks for pointing out
@sinhadeepak4101
@sinhadeepak4101 7 месяцев назад
Q4. When do we get NameError? Ans :- When we are not define a variable , function then we get NameError Q5. Python is a high level language. What does that mean by high level? Ans :- That code are understand by user/human that language is mean by high level. Q6. What is compiled and Inetrpreted language, list a few? Ans :- Compiled means numbers of code that was run at a time that was know as compiled and inetrpreted language are run one by one line. Q7. Get all varibales address from RAM and you find if something is similar? Ans :- we use id() function for obtain the address for RAM and if two variables have same values then address is similar.
Далее
operator, type casting and user input in python | Lec-6
40:05
🎙ПОЮ ВЖИВУЮ!
3:17:56
Просмотров 1,5 млн
Python in 8 Minutes (in Hindi) 🐍
8:29
Просмотров 1,2 млн
Why Linux Is Better For Programming
13:32
Просмотров 2,8 млн
If __name__ == "__main__" for Python Developers
8:47
Просмотров 398 тыс.
dictionary in python | Lec-14
33:55
Просмотров 1,8 тыс.
Python Classes and Objects - OOP for Beginners
8:01
Просмотров 548 тыс.