
u/agentscientific_160

What is API?
I'm new to coding and programming languages and i frequently come across the word API. Can anyone help me understand what that is?
I carelessly ran "irm christitus.com/win | iex"
I came across a video on the internet telling it debloats your pc and without further thinking I ran it. Is it safe. If not what do I do now.
Need help in buying a new Smartphone!
I have no prior knowledge about buying phone nor I had one before. I'm going to enter college next month and need a good mobile phone for that purpose. I searched the internet about "What Specifications Matter Most in a Smartphone" I found out nothing great so now I seek help from you guys!
Thanks in advance!!
Need motivation for Learning Python
Well, I started learning Python from 7th June and its been 31 days and I haven't progressed past OOPs. I was slacking off in the first week, and then I put some effort in my 2nd and 3rd week and when i completed Methods and functions I created a Tic Tac Toe game which is easy but took me long enough. Now after that I took 3-4 days break due to some personal reasons and now I find myself demotivated, mainly beacuse my holidays are ending and college is going to start in August. I wanted to complete learning the absolute basics in these holidays. I feel very unproductive now, all I need is tips for me to get back to coding without feeling demotivating. And also I.m having a hard time understanding OOPs and why __init__ is used.
Thanks in advance!
My first major Python project after 20 days of practicing basics
Is it okay to build major projects this late?
Tic Tac Toe Game
from IPython.display import clear_output
clear_output()
def reset_board():
return ['string of shame',' ',' ',' ',' ',' ',' ',' ',' ',' ']
def display_list(board):
print('These is your current game:')
print('\n',board[7],'|',board[8],'|',board[9],'\n','- - -','\n',board[4],'|',board[5],'|',board[6],'\n','- - -','\n',board[1],'|',board[2],'|',board[3])
def player_input():
marker = ''
while marker != 'X' and marker != 'O':
marker = input('Player 1 Please select X or O: ')
if marker not in ['X','O']:
clear_output()
print('Sorry thats not a valid input!')
clear_output()
player1 = marker
if player1 == 'X':
player2 = 'O'
else:
player2 = 'X'
return (player1, player2)
def position_choice():
choice ='WRONG'
within_range = False
while choice.isdigit() == False or within_range == False:
choice = input("Please enter a position referring the NumPad (1-9): ")
if choice.isdigit() == False:
clear_output()
print("Sorry that is not a digit!")
if choice.isdigit() == True:
if int(choice) in range(1,10):
within_range = True
else:
within_range = False
clear_output()
return int(choice)
def win_check(board,marker):
return(
(board[7]==board[8]==board[9]==marker) or
(board[4]==board[5]==board[6]==marker) or
(board[1]==board[2]==board[3]==marker) or
(board[7]==board[4]==board[1]==marker) or
(board[8]==board[5]==board[2]==marker) or
(board[9]==board[6]==board[3]==marker) or
(board[7]==board[5]==board[3]==marker) or
(board[9]==board[5]==board[1]==marker)
)
def tie_check(board):
return ' ' not in board
def space_check(board,position):
return board[position] == ' '
def play_game(marker):
#assigning X and O to p1 and p2
player1_marker,player2_marker = marker
#resetting the board before t=round start
board = reset_board()
#If game is on
game_on = True
turn = 'player1'
display_list(board)
while game_on:
if turn == 'player1':
print("Player 1's turn")
while True:
position = position_choice()
if space_check(board,position):
break
else:
display_list(board)
print("Sorry that spot's already taken, try again.")
board[position] = player1_marker
display_list(board)
#check if p1 won
if win_check(board,player1_marker):
print('Congratulations Player 1 has won the game!!')
game_on = False
elif tie_check(board):
print("Its a Tie")
game_on = False
else:
turn = 'player2'
else:
print("Player 2's turn")
while True:
position = position_choice()
if space_check(board,position):
break
else:
display_list(board)
print("Sorry that spot's already taken, try again.")
board[position] = player2_marker
display_list(board)
#check if p2 won
if win_check(board,player2_marker):
print('Congratulations Player 2 has won the game!!')
game_on = False
elif tie_check(board):
print("Its a Tie")
game_on = False
else:
turn = 'player1'
def replay():
choice = 'wrong'
while choice not in ['Y','N']:
choice = input("Would you like to keep playing? Y or N ").upper()
if choice not in ['Y','N']:
clear_output()
print("Sorry, I didn't understand. Please make sure to choose Y or N.")
clear_output()
if choice == "Y":
# Game is still on
return True
else:
# Game is over
return False
print("Welcome to Tic Tac Toe!")
while True:
play_game(player_input())
if not replay():
break
New to coding - need advice
I have a dilemma on where to start.
Many recommended start with python and many said start with C.
I'm confused where to go, which one is better for a beginner who has zero coding experience.
Is this course worth paying for? (For a complete Python beginner)
Have some doubts regarding the Integrated MME course. Seniors Please DM
I request the seniors who are in their final year or have graduated from NITW and did their course MME integrated to DM me if they're free.
Should I consider College over Branch
I've been having this confusion for a while now. I have not much interest in MME but it is the branch I would get in NITW so it's like college over branch thing. I have more interest in coding and Computing than MME.
So, I wanted to know if it's best for me to Join NITW MME and side hustle (as I heard that there is more time in MME compared to other branches) or should I consider something other.
And one more thing i also have an option of getting into BITS and getting EEE, M.Sc Phy/Maths (Dual degree, I could get CSE here but I am not sure if it's manageable...)
Helo with preference form
I've scored 239 in bitsat, now I need help with filling out the preference form. Please help