Python Class 12 | Chapter 05 | Python File Handling | Part 01 | Free Live Class | Day 05

preview_player
Показать описание
Python Class 12 | Chapter 05 | Python File Handling | Part 02 | Free Live Class | Day 05

Join this channel to get access to perks:

Tags Used:

codeitup
codeitup python
file handling in python
class 12 python
python class 12
python file handling
file handling
file handling in python class 12
class 12 file handling
class 12 computer science
binary files in python
file handling python class 12
files in python
file handling in python pycharm
file handling in python 3
class 12 python cbse
class 12 python file handling
python tutorial
introduction of binary files
pickle in python
pickle in binary file
pickle module
load and dump in binary file
binary file
file handling class 12
data file handling in python class 12

#codeitup
#class12
#python

@CBSE
@CBSE INDIA
@Unacademy CBSE Science 11 & 12
@CBSE Udaan XI
Рекомендации по теме
Комментарии
Автор

Mcq Nahi Chhahiye sir Please Programming ke questions 3 marks and 5 marks wale question laayiye 🙏🙏🙏🙏🙏🙏

jacksparrow
Автор

Your teaching style is 101 percent
I want teach like u

AmitKumar-lkgy
Автор

Sir you are just awesome. I wasn't able to do coding for last 2 years and almost gave up hope of learning programming before exams. But you proved to be a turning point in my life. Now I m able to do programming and hoping for a good result in cs exam this time. Thank you 🙏🥺

ishitabhargava
Автор

Sir your each and every session fill me with due confidence and zeal to target the exam sessions are indeed great...Thanku sir for such incredible

KhushiKumari-qxkz
Автор

From Bottom of the heart to u sir 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 shayd hi koe free meh esa content de Dil se bahut Amir ho ❤️❤️❤️❤️

aman
Автор

bahut accha tha sir session love you .

pratiksingh
Автор

Thank you sir itni help krne ke liye hmari❤❤

nytgaming
Автор

Sir thank you so so much before watching your video I don't know even a single world about data handling but now I am pro, once again thank you ❤🙏

ankur
Автор

Sir first time understand this chapter thank you for everything ☺️☺️🤠❤

vartularora
Автор

Sir you really are a life saver. Thanks so much for putting so much effort in teaching us.

A-MAN-cp
Автор

And sir please baki to apka padya sab ho gya...plesee ek bar sare chapter ke ques le aiye😊

jungleworld
Автор

Sir aap best ho... Aap khud ko kisi se compare mt kriye 💞

KhushbooPathak
Автор

sir ajtk kbhi itne acche se smjh nhi aya 100% clear hogya THANKYOU SO MUCH SIR💎

anchalverma
Автор

Sir mai aapka scheduled hi follow kr rhaa hu 10 days kaa is playlist kaa bcz sir mere pre boards start ho rhe 13 dec sai isliye aur sir thnx a lot itni aachi videos kai liye☺☺

Memescollector.
Автор

Sir I wanna say that u have got to much respect because ur teaching is to much amazing 😍i don't think we can get better teacher then u who values students thinking and respect that more than money ❣️❤️❤️❣️❣️

renujoshi
Автор

#copy paste it in python
def print_board(board):
print(f'{board[0]} | {board[1]} | {board[2]}')
print('--+---+--')
print(f'{board[3]} | {board[4]} | {board[5]}')
print('--+---+--')
print(f'{board[6]} | {board[7]} | {board[8]}')

def get_move(board, player):
while True:
move = input(f'Player {player}, enter your move (0-8): ')
if move.isdigit() and int(move) >= 0 and int(move) <= 8 and board[int(move)] == ' ':
return int(move)
print('Invalid move, please try again.')

def check_win(board):
for i in range(0, 9, 3):
if board[i] == board[i+1] == board[i+2] != ' ':
return board[i]
for i in range(3):
if board[i] == board[i+3] == board[i+6] != ' ':
return board[i]
if board[0] == board[4] == board[8] != ' ':
return board[0]
if board[2] == board[4] == board[6] != ' ':
return board[2]
if ' ' not in board:
return 'tie'
return None

def play_game():
board = [' '] * 9
players = ['X', 'O']
current_player = 0
while True:
print_board(board)
move = get_move(board, players[current_player])
board[move] = players[current_player]
winner = check_win(board)
if winner:
print_board(board)
if winner == 'tie':
print('Tie game!')
else:
print(f'Player {winner} wins!')
break
current_player = (current_player + 1) % 2

play_game()
#copy paste it in python

gudgud
Автор

It's really helpful sir ....thank you soo muchh

varshachoubey
Автор

sir sorting to revision tour 2 me hi hai na sumita arora ke hisab se aur revision tour to aa raha hai to matlab vo aayega?

vihangour
Автор

Maja aagaya
Ek number samjha gaya sab❤

sakettejpal
Автор

I will not lie but actually I am getting interest in computer science..
Sir thank you so much....

mohdfaizxi-a