Standard Input, Output and Error Streams, Relative and Absolute paths | FIle handling CLass 12

  Рет қаралды 46,686

Swati Chawla

Swati Chawla

Күн бұрын

Пікірлер: 131
@atulsinghnegi6980
@atulsinghnegi6980 4 жыл бұрын
What is the need of the concept of stdin , stdout or stderr ??
@rohitkumar8636
@rohitkumar8636 9 ай бұрын
Nothing, just time pass
@a.sharavanakumar8777
@a.sharavanakumar8777 3 жыл бұрын
I had doubt in this topic.. But know my concepts are cleared. Thank you so much mam.. We support you 💜💜🏆
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Glad it was helpful... Thanku so much.. Keep watching
@VikasKumar-kf6kr
@VikasKumar-kf6kr 4 жыл бұрын
I am also a CS teacher..but new learner of python..fan ho gaya mam main apki teaching ka..
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanku so much 🙏🏻😊
@ankithashet9168
@ankithashet9168 4 жыл бұрын
ma'am you have no idea you are helping us i will surely recommend you to my friends
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
thanku so much...for ur support.... keep watching
@ankithashet9168
@ankithashet9168 4 жыл бұрын
@@SwatiChawlaofficial 😊
@aishanasim1900
@aishanasim1900 4 жыл бұрын
🔥🔥🔥🔥🔥a lot of blessings n thanks mam❤️❤️❤️
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Welcome
@sachinkhote451
@sachinkhote451 3 жыл бұрын
I found this fantastic teacher in march 😭😭😭
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
No worries... still u r having time... Do share this channel with others too.. Keep watching..
@AjeetKumar-hv5up
@AjeetKumar-hv5up 4 жыл бұрын
Mam.keep.going u r doing great Content is *1st class*
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanku so much...🙏🏻😊 Keep watching 👍🏻
@ankita6251
@ankita6251 4 жыл бұрын
Explained very nicely maam Its crystal clear now😊
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Glad to hear that
@aadijain2609
@aadijain2609 3 жыл бұрын
😊 awesome expln 😊
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanku
@godgamer2258
@godgamer2258 3 жыл бұрын
mam aapne koi telegram doubt group bhi banaya hai?. kyunki mam agar telegram group hoga to usme doubt puchne me asani rahegi. vaise mam, due to your fabulous explaination, zyada doubts mujhe ate nahi. nut still it would be really helpful if you make one for 12th class students
@atgaming7578
@atgaming7578 2 жыл бұрын
I have doubt through your teaching skill is very goog mam
@sachinkhote451
@sachinkhote451 3 жыл бұрын
Mam u r too good teacher 🙏🙏🙏
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanks a lot
@sidharthsunu7595
@sidharthsunu7595 3 жыл бұрын
Mam your explanation is very nice . Just I want know when we are using these streams. Actually we can handle the same situation using input() and print() . Then why we need these stdin and stdout.
@yashbhatt3973
@yashbhatt3973 3 жыл бұрын
Because they are high level function and they themselves are made from these streams for ease of users
@ramjeegupta4735
@ramjeegupta4735 3 жыл бұрын
You are great mam
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanku
@clashroyalehiste
@clashroyalehiste 3 жыл бұрын
thank you so much mam, you know after 3 days we r having term1 boards
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Best wishes for ur board exams
@StudyGuru1504
@StudyGuru1504 3 жыл бұрын
such a gajab teacher tnk u mam very much from agra
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanks and welcome
@akshayraj1967
@akshayraj1967 2 жыл бұрын
Mam ur lectured r top tier, ur pdf is amazing. Will there be any chance of the public getting access to ur pdfs?
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Sure..You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
@yashaswipurohit2424
@yashaswipurohit2424 Жыл бұрын
You are amazing.....Thank Youuu
@aartisharma2296
@aartisharma2296 2 жыл бұрын
I have a question we are checking if char=='' but wht if it gets spaces? then how it will understand that this is end of line or space
@julietharris08
@julietharris08 2 жыл бұрын
Please if you explain in english it would be so helpful those who watches in other languages... I dont know hindi... Kindly always explain in english.. You are doing great....I just dont want to miss your videos
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Actually getting requests for both English as well as Hindi... That's why using bilingual
@godgamer2258
@godgamer2258 3 жыл бұрын
mam 3:47 par 1st line me implemented as files ke bad 'can be' likha hai na? pls batadijiye mam kyunki mai video ke sath sath notes banata hu na
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
These standard devices are implemented as files called standard streams.
@inu0602
@inu0602 2 жыл бұрын
Ma'am, whenever I wrote [ end=' ' ] it shows error .......WHY? can you plz tell me🙏
@thiru20-fj2tq
@thiru20-fj2tq Жыл бұрын
Mam I have a doubt in the code for file handling 12:59 I have a doubt in output I also tried the pgm in my PC mam you wrote story. txt as already you have that document I also did the same but got error as filenotfounderror
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
Either give the complete path of a file... Or Place both the files at same location
@rosevlogzz
@rosevlogzz Жыл бұрын
Teacher can u tell what is the use of sys.stdin.readline() in the above program 🙏
@snehagupta8013
@snehagupta8013 Жыл бұрын
Excuse me ma'am I have a doubt is this in the syllabus of 2023?
@bhoomikabajpei4234
@bhoomikabajpei4234 3 жыл бұрын
Ma'am when will u teach us on smart board
@Prachita516
@Prachita516 3 жыл бұрын
Ma'am i still have doubt in relative path, can u please make another video for this topic? just 5-10mins long ? it would be a great help ma'am 😅😅😅
@freefirebattleground1675
@freefirebattleground1675 3 жыл бұрын
Mam pls confirm whether this topic is deleted or not
@non5378
@non5378 4 жыл бұрын
Mam could you give me some ideas about what types of software had students make for class 12th practical???
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
there are many softwares available.. u can use according to your convenience and requirement..
@non5378
@non5378 4 жыл бұрын
@@SwatiChawlaofficial mam did u also made software on 12th?
@allansabu6093
@allansabu6093 4 жыл бұрын
Ye sys func to h hi nhi....file handling m...ye beech m kahan se aa gaya?
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
sys module is their..in ur curriculum... Standard input streams, output streams and error streams..in text file... For more detail..plz refer CBSE Curriculum
@indiranamasivayam9174
@indiranamasivayam9174 Жыл бұрын
If IMP file is CWD, then what is the relative path for 1.mp4 mam
@Factforall.26
@Factforall.26 Жыл бұрын
mam parent directory kya hota hai where to use two dot (..)
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
Parent directory means... Either root directory or u can say top most level... Like your c, d drives
@Factforall.26
@Factforall.26 Жыл бұрын
thank you so much mam @@SwatiChawlaofficial
@LofiEditz
@LofiEditz 2 жыл бұрын
Good morning ma'am ma'am i have doubt that i my computer science with python class12 it is written that opening file pointer position in w+ mode is at the beginning at the file. page no. 205.
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
When you open the file in w+ mode, it will be empty...cursor in the beginning or end..means same . . After writing the data, we can read also...
@LofiEditz
@LofiEditz 2 жыл бұрын
@@SwatiChawlaofficial Thankyou ma'am
@chococandy8009
@chococandy8009 4 жыл бұрын
Thank you ma'am.
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Welcome 😊🙏🏻
@ronysedits2866
@ronysedits2866 4 жыл бұрын
Mam 10:14 Why we are writing print Instead Can we use sys.stdout.write(ch, end=' ')
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
We can not use end argument in sys.stdout.write() as it is in the print()
@ronysedits2866
@ronysedits2866 4 жыл бұрын
Thank you mam
@Itsmeakriti13
@Itsmeakriti13 7 ай бұрын
Hii can you also provide us with your notes please....
@SwatiChawlaofficial
@SwatiChawlaofficial 7 ай бұрын
*Hey, now you can avail all these notes at the discounted rate….* *Class - X Information Technology* * Employability Skills (Notes) - X rzp.io/l/1mcA8UL * Employability Skills (Ques Ans) - X rzp.io/l/2hxw8tY6N * NCERT Solutions of CBSE Class 10 IT 402 rzp.io/l/fKUADxvbv * Unit - 1 Digital Documentation Advanced using LibreOffice rzp.io/l/GUhTNcTpH * Unit - 2 Electronic Spreadsheet Advanced (using LibreOffice) rzp.io/l/PpBEONKRN * Unit - 3 DBMS (based on LibreOffice Base) rzp.io/l/XJrYs2P * Unit - 4 Managing Health and Safety rzp.io/l/TQWvwOa *Class 11 Computer Science (083)* * Python rzp.io/l/cKflR95C *Class 12 Computer Science (083)* * Computational Thinking & Programming - 2 rzp.io/l/wihJhPBO * Computer Networks rzp.io/l/OKWrgua * Database Management rzp.io/l/z0mu2uBVu * Assertion and Reasoning rzp.io/l/TgngGDjb *IMPORTANT : After successful payment, don't refresh or go back (Redirecting...... will be shown on screen) , just wait for a while, and then Click on Request Access button, then you will get access to notes on your G-Mail ID within 24 hours.*
@prashansasinghrathore2725
@prashansasinghrathore2725 3 жыл бұрын
Mam plz make one more video on relative path .. i didn't understood ... Please mam
@ranita5599
@ranita5599 3 жыл бұрын
Ma'am Iss bar kya syllabus pai hai iye topic🙏
@shreyasinha-iitbhu8080
@shreyasinha-iitbhu8080 3 жыл бұрын
Mam ye hamare XII k syllabus mein hai?????.. school me to nhi pdhaya gya hamein
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Yes...it's there in your curriculum...
@shreyasinha-iitbhu8080
@shreyasinha-iitbhu8080 3 жыл бұрын
Ok mam!!!...😊
@cnsraghavan1592
@cnsraghavan1592 3 жыл бұрын
Ma’am,what is the difference between strip( ) and split( ) ? Kindly respond 🙏
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
strip() will remove blank spaces from left and right split() it splits the string according to the argument given (by default with blank space) and returns the result in the form of a list..
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
For detailed explanation, plz check out the videos of String Functions String Manipulation: kzbin.info/aero/PL5Raijva2y4S8NmIDmeY2IRMulsvLZg_A
@cnsraghavan1592
@cnsraghavan1592 3 жыл бұрын
@@SwatiChawlaofficial Thanks a lot ma’am 😀 Ma’am,is this video included in the playlist for python revision tour?
@ritarai9320
@ritarai9320 4 жыл бұрын
👍🏻👍🏻 Mam the video is great but Mam can You please tell me how to read a file and print its data on my screen using standard streams..😀
@ritarai9320
@ritarai9320 4 жыл бұрын
Ok Mam You already told that...my mistake..😅😄
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
it's okk... My pleasure... keep watching..
@UndefeatableChampions
@UndefeatableChampions 2 жыл бұрын
Hi Ma'am, I have a very important doubt in a question of random(). Where can I perhaps forward the question to you so that you can maybe help me.
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
random module: kzbin.info/aero/PL5Raijva2y4T70gfikFKcqy-WdAA9M50E
@krish4292
@krish4292 4 жыл бұрын
6:40 mam this program does not work on spyder.. it says invalid literal for int with base 10()
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Plz check ur code again.. It will work
@krish4292
@krish4292 4 жыл бұрын
@@SwatiChawlaofficial mam I tried it on python ..it worked properly ,but spyder gives error invalid literal and doesn’t accept sys.stdin.readline() in int
@Arpitaasharnaa
@Arpitaasharnaa Жыл бұрын
Mam ye topic 2024 class 12 th me nhi hai nah ? please reply mam ....
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
No
@allansabu6093
@allansabu6093 4 жыл бұрын
Mam~is ur playlist in series?
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Yes.. it's in series...
@priyankacs3189
@priyankacs3189 3 жыл бұрын
Mam , when we are reading character one by one when one word finished next will be ' ' right?so when we check ch==' ' how it is checking That
@yadavpooja7960
@yadavpooja7960 3 жыл бұрын
mam readline() to sirf ek line he read krta hai fer yaha pure file kase read kr raha hai
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
If u use readline() inside a loop, then it will read line by line till the condition is True..
@aravind4868
@aravind4868 4 жыл бұрын
ma'am please explain me about flush() and removing white space after reading from file
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
The flush() method in Python file handling clears the internal buffer of the file. In Python, files are automatically flushed while closing them. However, a programmer can flush a file before closing it by using the flush() method. Syntax: fileObject.flush()
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
to remove trailing white spaces..u can use rstrip() .. to remove leading white spaces, we can use lstrip(), to remove both leading and trailing white spaces, use strip()
@aravind4868
@aravind4868 4 жыл бұрын
@@SwatiChawlaofficial thank you mam
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Welcome
@AnushkaSingh-ux6ow
@AnushkaSingh-ux6ow 4 жыл бұрын
Ma'am how to count no of vowels and consonants from text file
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
def alphabet(): f=open("AAA.txt","r") data=f.read() c=v=0 print(data) for i in data: if i.isalpha(): if i.lower() in 'aeiou': v+=1 else: c+=1 print("Consonants:",c) print("Vowels:",v) f.close() alphabet()
@AnushkaSingh-ux6ow
@AnushkaSingh-ux6ow 4 жыл бұрын
Ma'am can you please resend the correct answer again
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
def alphabet(): f=open("AAA.txt","r") data=f.read() c=v=0 print(data) for i in data: if i.isalpha(): if i.lower() in 'aeiou': v+=1 else: c+=1 print("Consonants:",c) print("Vowels:",v) f.close() alphabet()
@Aditya-qx7nf
@Aditya-qx7nf 3 жыл бұрын
Ma'am was the c drive root directory ?
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
yes
@akhilbansal4849
@akhilbansal4849 4 жыл бұрын
Please provides notes also mam Great lectures great content Really appreciate you hard work ❤️
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Sure... You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
@Deepak-qu6uq
@Deepak-qu6uq 2 жыл бұрын
Q:-Following is the structure of each record in a data file named "PRODUCT.DAT". ("prod_code": value, "prod_desc": value, "stock": value) The values for prod_code and prod_desc are strings and the value for stock is an integer. Write a function in Python to update the file with a new value of stock. The stock and the product_code, whose stock is to be updated, are to be inputted during the execution of the function.respected Swati mam plz give me the solution of this question
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
kzbin.info/www/bejne/q5fdlpRjoM90bK8
@lightning8576
@lightning8576 4 жыл бұрын
I just want to know in which way we have thing to solve questions
@ankitandanshuexperiment.7373
@ankitandanshuexperiment.7373 3 жыл бұрын
Mam when i excuted this in my laptop it show' true' is not define what can I do
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
'T' will be capital for True
@ankitandanshuexperiment.7373
@ankitandanshuexperiment.7373 3 жыл бұрын
Ok mam done
@sidharthsunu7595
@sidharthsunu7595 3 жыл бұрын
Mam can you please give few programs using relative path
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Plz check the playlist...most of the programs being implemented follows relative path
@nehagaur2710
@nehagaur2710 4 жыл бұрын
Hi ma'am ,I am writing the same code but I am getting an error"invalid literal for int() with base 10: '' in line of code"a=int(sys.stdin.readline())"..I am not getting why...Plz suggest
@swapnilsaraswat8637
@swapnilsaraswat8637 4 жыл бұрын
its just the version error may be u have older version or the latest version
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
check the values you are entering ..i think u are trying to enter the string value in place of integer....
@nehagaur2710
@nehagaur2710 4 жыл бұрын
@@SwatiChawlaofficial Ma'am its a compilation error .The program is not getting executed
@nehagaur2710
@nehagaur2710 4 жыл бұрын
@@swapnilsaraswat8637 its Spyder(Python 3.7)
@lightning8576
@lightning8576 4 жыл бұрын
Mam, I really don't know how to use logic in python that's why I always score less can u suggest me tips because I have to give board this year Please mam it's a request
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Still u r having... 5 and half months... This time is enough to improve ur logics and get command on the topics.. U can start watching my videos...covered all the Chapters with important Questions... Wherever possible, try to implement Practically..to explore.. It will definitely improve ur Concepts
@lightning8576
@lightning8576 4 жыл бұрын
Thank you mam I will definitely try this
@angadsingh6478
@angadsingh6478 4 жыл бұрын
mam what is raw string?
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Python raw string is created by prefixing a string literal with ‘r’ or ‘R’. Python raw string treats backslash (\) as a literal character. This is useful when we want to have a string that contains backslash and don’t want it to be treated as an escape character.
@non5378
@non5378 4 жыл бұрын
Mam plz make video on __main__ and __name__
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
ok
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Main function is like the entry point of a program. However, Python interpreter runs the code right from the first line. The execution of the code starts from the starting line and goes line by line. It does not matter where the main function is present or it is present or not. Since there is no main() function in Python, when the command to run a Python program is given to the interpreter, the code that is at level 0 indentation is to be executed. However, before doing that, it will define a few special variables. __name__ is one such special variable. If the source file is executed as the main program, the interpreter sets the __name__ variable to have a value __main__. If this file is being imported from another module, __name__ will be set to the module’s name. __name__ is a built-in variable which evaluates to the name of the current module.
@AnushkaSingh-ux6ow
@AnushkaSingh-ux6ow 4 жыл бұрын
Ma'am in that line if I. islower in aeiou is showing errror
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
I.lower() in 'aeiou':
@VardhanMittal
@VardhanMittal 4 жыл бұрын
𝑀𝒶𝓂 𝓉𝒽𝒾𝓈 𝒾𝓈 𝒾𝓃 𝑜𝓊𝓇 𝓈𝓎𝓁𝓁𝒶𝒷𝓊𝓈??
@VardhanMittal
@VardhanMittal 4 жыл бұрын
𝒮𝓎𝓈 𝓂𝑜𝒹𝓊𝓁𝑒
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Yes
@debarghyakundu908
@debarghyakundu908 3 жыл бұрын
mam you have a beautiful and killer smile.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН
What staying up all night does to your brain - Anna Rothschild
5:37
File Handling in Python - Part 7 - Standard input, output & error streams of Python
12:43
Enjoy Learning Computer Science
Рет қаралды 2,3 М.
Как стать ЛУЧШИМ тестировщиком: от учителя до QA-инженера в Т-Банк
1:14:20
Руслан Масленников | Подкаст "экcпириенс"
Рет қаралды 17 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН