

Course to do as a college fresher
So,I am a college fresher,will be joining college this year in it sector
I am currently want to make career into data scientist
And want to know what courses and certificate are must for a college fresher to do
Thx for reading the msg
I ma currently pursuing 100dasy of python bootcamp by angela yu
Pdeu ce cutoff
Can anyone tell if anyone got ce at more than 1200
longest newbie project by far,took me so much time to code and think,reviews pls!
reddit.comlongest newbie project by far,took me so much time to code and think,reviews pls!
MENU = {
"espresso": {
"ingredients": {
"water": 50,
"coffee": 18,
},
"cost": 1.5,
},
"latte": {
"ingredients": {
"water": 200,
"milk": 150,
"coffee": 24,
},
"cost": 2.5,
},
"cappuccino": {
"ingredients": {
"water": 250,
"milk": 100,
"coffee": 24,
},
"cost": 3.0,
}
}
resources = {
"water": 300,
"milk": 200,
"coffee": 100,
}
#penny=0.01
#nickel=0.05
#dime=0.1
#quarter=0.25
still_making=True
print("Welcome to Coffee Machine Project.")
while still_making:
user_input=input("What would you want espresso/latte/cappuccino?")
if user_input == "report":
print(resources)
elif user_input == "espresso":
pennys=int(input("pennys"))*0.01
nickels=int(input("nickels"))*0.05
dimes=int(input("dimes"))*0.1
quarters=int(input("quarters"))*0.25
cost_1=pennys+nickels+dimes+quarters
print("$",cost_1,"is your total entry amount")
if resources["water"]<MENU["espresso"]["ingredients"]["water"] or resources["coffee"]<MENU["espresso"]["ingredients"]["coffee"]:
print("Not enough supplies")
else:
if cost_1>=MENU["espresso"]["cost"]:
print(cost_1-MENU["espresso"]["cost"],"here is your change")
resources["water"]=resources["water"]-MENU["espresso"]["ingredients"]["water"]
resources["coffee"] = resources["coffee"] - MENU["espresso"]["ingredients"]["coffee"]
resources["milk"]=resources["milk"]
print(resources)
if cost_1<=MENU["espresso"]["cost"]:
print("Not enough money")
elif user_input == "latte":
pennys=int(input("pennys"))*0.01
nickels=int(input("nickels"))*0.05
dimes=int(input("dimes"))*0.1
quarters=int(input("quarters"))*0.25
cost_1=pennys+nickels+dimes+quarters
print("$", cost_1, "is your total entry amount")
if resources["water"]<MENU["latte"]["ingredients"]["water"] or resources["coffee"]<MENU["latte"]["ingredients"]["coffee"] or resources["milk"]<MENU["latte"]["ingredients"]["milk"]:
print("Not enough supplies")
else:
if cost_1>=MENU["latte"]["cost"]:
print(cost_1-MENU["latte"]["cost"],"here is your change")
resources["water"] = resources["water"] - MENU["latte"]["ingredients"]["water"]
resources["coffee"] = resources["coffee"] - MENU["latte"]["ingredients"]["coffee"]
resources["milk"] = resources["milk"] - MENU["latte"]["ingredients"]["milk"]
print(resources)
if cost_1<=MENU["latte"]["cost"]:
print("Not enough money")
elif user_input == "cappuccino":
pennys=int(input("pennys"))*0.01
nickels=int(input("nickels"))*0.05
dimes=int(input("dimes"))*0.1
quarters=int(input("quarters"))*0.25
cost_1=pennys+nickels+dimes+quarters
print("$", cost_1, "is your total entry amount")
if resources["water"] < MENU["cappuccino"]["ingredients"]["water"] or resources["coffee"] < MENU["cappuccino"]["ingredients"]["coffee"] or resources["milk"]<MENU["cappuccino"]["ingredients"]["milk"]:
print("Not enough supplies")
else:
if cost_1>=MENU["cappuccino"]["cost"]:
print(cost_1-MENU["cappuccino"]["cost"],"here is your change")
resources["water"] = resources["water"] - MENU["cappuccino"]["ingredients"]["water"]
resources["coffee"] = resources["coffee"] - MENU["cappuccino"]["ingredients"]["coffee"]
resources["milk"] = resources["milk"] - MENU["cappuccino"]["ingredients"]["milk"]
if cost_1<=MENU["cappuccino"]["cost"]:
print("Not enough money")
input("If you still want to make press y, or if not press n")
if user_input == "y":
still_making=True
else:
still_making=False
its a coffe making project
how do you think it is
thx for reviewing
first bug and cant solve it
MENU = {
"espresso": {
"ingredients": {
"water": 50,
"coffee": 18,
},
"cost": 1.5,
},
"latte": {
"ingredients": {
"water": 200,
"milk": 150,
"coffee": 24,
},
"cost": 2.5,
},
"cappuccino": {
"ingredients": {
"water": 250,
"milk": 100,
"coffee": 24,
},
"cost": 3.0,
}
}
resources = {
"water": 300,
"milk": 200,
"coffee": 100,
}
penny=0.01
nickel=0.05
dime=0.1
quarter=0.25
print("Welcome to Coffee Machine Project.")
user_input=input("What would you want espresso/latte/cappuccino?")
if user_input == "report":
print(resources)
elif user_input == "espresso":
pennys=int(input("pennys"))*0.01
nickels=int(input("nickels"))*0.05
dimes=int(input("dimes"))*0.1
quarters=int(input("quarters"))*0.25
cost_1=pennys+nickels+dimes+quarters
print(cost_1)
if cost_1>=MENU["espresso"]["cost"]:
print(cost_1-MENU["espresso"]["cost"],"here is your change")
so when i entered espresso
then 10 in pennys
10 nickels
10 dimes
10 quarters
the total cost=4.1
and cost of espresso=1.5
so 4.1-1.5=answer
but when print(cost_1-MENU["espresso"]["cost"],"here is your change")
the answer of 4.1-1.5 showing here is=2.5999999999999996
can anyone help me solving it
My version of, who has more followers,as a newbie
print(logo)
still_playing = True
while still_playing:
acc_1=random.choice(data)
acc_2=random.choice(data)
print("acc_1:",acc_1["name"])
print("acc_2:",acc_2["name"])
a=input("Who has more followers?,if acc_2 has more press y,if acc_1 has then press n ")
if a=="y":
if acc_1["follower_count"]<acc_2["follower_count"]:
print("you win")
else:
print("you lose")
if a=="n":
if acc_1["follower_count"]>acc_2["follower_count"]:
print("you win")
else:
print("you lose")
input("do you want to play again ?,press y to continue")
if input=="y":
still_playing = True
else:
still_playing = False
print("goodbye")
now the data is here,down here
ok here in the upper code i didnt use f string rather i used the commas, and want to know if its friendly to play for yall?
give me reviews after
thx for reading
data = [
{
'name': 'Instagram',
'follower_count': 346,
'description': 'Social media platform',
'country': 'United States'
},
{
'name': 'Cristiano Ronaldo',
'follower_count': 215,
'description': 'Footballer',
'country': 'Portugal'
},
{
'name': 'Ariana Grande',
'follower_count': 183,
'description': 'Musician and actress',
'country': 'United States'
},
{
'name': 'Dwayne Johnson',
'follower_count': 181,
'description': 'Actor and professional wrestler',
'country': 'United States'
},
{
'name': 'Selena Gomez',
'follower_count': 174,
'description': 'Musician and actress',
'country': 'United States'
},
{
'name': 'Kylie Jenner',
'follower_count': 172,
'description': 'Reality TV personality and businesswoman and Self-Made Billionaire',
'country': 'United States'
},
{
'name': 'Kim Kardashian',
'follower_count': 167,
'description': 'Reality TV personality and businesswoman',
'country': 'United States'
},
{
'name': 'Lionel Messi',
'follower_count': 149,
'description': 'Footballer',
'country': 'Argentina'
},
{
'name': 'Beyoncé',
'follower_count': 145,
'description': 'Musician',
'country': 'United States'
},
{
'name': 'Neymar',
'follower_count': 138,
'description': 'Footballer',
'country': 'Brasil'
},
{
'name': 'National Geographic',
'follower_count': 135,
'description': 'Magazine',
'country': 'United States'
},
{
'name': 'Justin Bieber',
'follower_count': 133,
'description': 'Musician',
'country': 'Canada'
},
{
'name': 'Taylor Swift',
'follower_count': 131,
'description': 'Musician',
'country': 'United States'
},
{
'name': 'Kendall Jenner',
'follower_count': 127,
'description': 'Reality TV personality and Model',
'country': 'United States'
},
{
'name': 'Jennifer Lopez',
'follower_count': 119,
'description': 'Musician and actress',
'country': 'United States'
},
{
'name': 'Nicki Minaj',
'follower_count': 113,
'description': 'Musician',
'country': 'Trinidad and Tobago'
},
{
'name': 'Nike',
'follower_count': 109,
'description': 'Sportswear multinational',
'country': 'United States'
},
{
'name': 'Khloé Kardashian',
'follower_count': 108,
'description': 'Reality TV personality and businesswoman',
'country': 'United States'
},
{
'name': 'Miley Cyrus',
'follower_count': 107,
'description': 'Musician and actress',
'country': 'United States'
},
{
'name': 'Katy Perry',
'follower_count': 94,
'description': 'Musician',
'country': 'United States'
},
{
'name': 'Kourtney Kardashian',
'follower_count': 90,
'description': 'Reality TV personality',
'country': 'United States'
},
{
'name': 'Kevin Hart',
'follower_count': 89,
'description': 'Comedian and actor',
'country': 'United States'
},
{
'name': 'Ellen DeGeneres',
'follower_count': 87,
'description': 'Comedian',
'country': 'United States'
},
{
'name': 'Real Madrid CF',
'follower_count': 86,
'description': 'Football club',
'country': 'Spain'
},
{
'name': 'FC Barcelona',
'follower_count': 85,
'description': 'Football club',
'country': 'Spain'
},
{
'name': 'Rihanna',
'follower_count': 81,
'description': 'Musician and businesswoman',
'country': 'Barbados'
},
{
'name': 'Demi Lovato',
'follower_count': 80,
'description': 'Musician and actress',
'country': 'United States'
},
{
'name': "Victoria's Secret",
'follower_count': 69,
'description': 'Lingerie brand',
'country': 'United States'
},
{
'name': 'Zendaya',
'follower_count': 68,
'description': 'Actress and musician',
'country': 'United States'
},
{
'name': 'Shakira',
'follower_count': 66,
'description': 'Musician',
'country': 'Colombia'
},
{
'name': 'Drake',
'follower_count': 65,
'description': 'Musician',
'country': 'Canada'
},
{
'name': 'Chris Brown',
'follower_count': 64,
'description': 'Musician',
'country': 'United States'
},
{
'name': 'LeBron James',
'follower_count': 63,
'description': 'Basketball player',
'country': 'United States'
},
{
'name': 'Vin Diesel',
'follower_count': 62,
'description': 'Actor',
'country': 'United States'
},
{
'name': 'Cardi B',
'follower_count': 67,
'description': 'Musician',
'country': 'United States'
},
{
'name': 'David Beckham',
'follower_count': 82,
'description': 'Footballer',
'country': 'United Kingdom'
},
{
'name': 'Billie Eilish',
'follower_count': 61,
'description': 'Musician',
'country': 'United States'
},
{
'name': 'Justin Timberlake',
'follower_count': 59,
'description': 'Musician and actor',
'country': 'United States'
},
{
'name': 'UEFA Champions League',
'follower_count': 58,
'description': 'Club football competition',
'country': 'Europe'
},
{
'name': 'NASA',
'follower_count': 56,
'description': 'Space agency',
'country': 'United States'
},
{
'name': 'Emma Watson',
'follower_count': 56,
'description': 'Actress',
'country': 'United Kingdom'
},
{
'name': 'Shawn Mendes',
'follower_count': 57,
'description': 'Musician',
'country': 'Canada'
},
{
'name': 'Virat Kohli',
'follower_count': 55,
'description': 'Cricketer',
'country': 'India'
},
{
'name': 'Gigi Hadid',
'follower_count': 54,
'description': 'Model',
'country': 'United States'
},
{
'name': 'Priyanka Chopra Jonas',
'follower_count': 53,
'description': 'Actress and musician',
'country': 'India'
},
{
'name': '9GAG',
'follower_count': 52,
'description': 'Social media platform',
'country': 'China'
},
{
'name': 'Ronaldinho',
'follower_count': 51,
'description': 'Footballer',
'country': 'Brasil'
},
{
'name': 'Maluma',
'follower_count': 50,
'description': 'Musician',
'country': 'Colombia'
},
{
'name': 'Camila Cabello',
'follower_count': 49,
'description': 'Musician',
'country': 'Cuba'
},
{
'name': 'NBA',
'follower_count': 47,
'description': 'Club Basketball Competition',
'country': 'United States'
}
]
My version of high,low game as a newbie, can anyone give review about the code
import random
random_number = random.randint(1, 101)
game_over = False
life=0
mode=input("hard or easy")
if mode=="hard":
life=5
print("Hard Guessing Game")
print("You have five lives left")
elif mode=="easy":
life=10
else:
life=10
while not game_over:
player_guess = int(input("Guess a number between 1 and 100: "))
if life==1:
game_over = True
print("You Lose!")
print("This was the number:", random_number)
elif player_guess == random_number:
game_over = True
print("You guessed the number!")
elif player_guess > random_number:
print("Too high!")
life-=1
print("you have", life, "lives left")
game_over = False
elif player_guess < random_number:
print("Too low!")
game_over = False
life-=1
print("you have", life,"lives left")
100 Days of Code™: The Complete Python Pro Bootcamp
i am in the 11th day of this course,can anyone tell me how is this course,
what will this course get me?
is this course enough?
and what types of domains does this course introduce us to?
thx for reading the message
Guys i am a newbie in coding, made this version of blackjack fully by myself. just wanted a public review about the code i am doing the angelina yu's 100 days of python so can anyone tell is it good for a newbie to make this type of code
import random
cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
n1= random.choice(cards)
n2= random.choice(cards)
print(f"[{n1},{n2}],these are your cards")
n3= random.choice(cards)
n4= random.choice(cards)
print(f"[{n3},],these are my cards")
Decision=input("Do you want another card if yes enter y if no enter n")
if Decision=="y":
n5= random.choice(cards)
if 21>=n1+n2+n5>=n3+n4:
print("you win")
print(f"[{n3},{n4}],these are my cards")
print(f"[{n1},{n2},{n5}],these are your cards")
elif n1+n2+n5==n3+n4:
print("Draw")
print(f"[{n3},{n4}],these are my cards")
print(f"[{n1},{n2},{n5}],these are your cards")
else:
print("you lose")
print(f"[{n3},{n4}],these are my cards")
print(f"[{n1},{n2},{n5}],these are your cards")
elif Decision=="n":
if 21>=n1+n2>n3+n4:
print("you win")
print(f"[{n3},{n4}],these are my cards")
print(f"[{n1},{n2}],these are your cards")
elif n1+n2==n3+n4:
print("Draw")
print(f"[{n3},{n4}],these are my cards")
print(f"[{n1},{n2}],these are your cards")
else:
print("you lose")
print(f"[{n3},{n4}],these are my cards")
print(f"[{n1},{n2}],these are your cards")
the upper one is mine
and the lower one is the method they gave
idk i think i didnt do well
import random
from art import logo
def deal_card():
"""Returns a random card from the deck"""
cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
card = random.choice(cards)
return card
def calculate_score(cards):
"""Take a list of cards and return the score calculated from the cards"""
if sum(cards) == 21 and len(cards) == 2:
return 0
if 11 in cards and sum(cards) > 21:
cards.remove(11)
cards.append(1)
return sum(cards)
def compare(u_score, c_score):
"""Compares the user score u_score against the computer score c_score."""
if u_score == c_score:
return "Draw 🙃"
elif c_score == 0:
return "Lose, opponent has Blackjack 😱"
elif u_score == 0:
return "Win with a Blackjack 😎"
elif u_score > 21:
return "You went over. You lose 😭"
elif c_score > 21:
return "Opponent went over. You win 😁"
elif u_score > c_score:
return "You win 😃"
else:
return "You lose 😤"
def play_game():
print(logo)
user_cards = []
computer_cards = []
computer_score = -1
user_score = -1
is_game_over = False
for _ in range(2):
user_cards.append(deal_card())
computer_cards.append(deal_card())
while not is_game_over:
user_score = calculate_score(user_cards)
computer_score = calculate_score(computer_cards)
print(f"Your cards: {user_cards}, current score: {user_score}")
print(f"Computer's first card: {computer_cards[0]}")
if user_score == 0 or computer_score == 0 or user_score > 21:
is_game_over = True
else:
user_should_deal = input("Type 'y' to get another card, type 'n' to pass: ")
if user_should_deal == "y":
user_cards.append(deal_card())
else:
is_game_over = True
while computer_score != 0 and computer_score < 17:
computer_cards.append(deal_card())
computer_score = calculate_score(computer_cards)
print(f"Your final hand: {user_cards}, final score: {user_score}")
print(f"Computer's final hand: {computer_cards}, final score: {computer_score}")
print(compare(user_score, computer_score))
while input("Do you want to play a game of Blackjack? Type 'y' or 'n': ") == "y":
print("\n" * 20)
play_game()
things to know before college
i will be joining pdeu and made a video to help others with somewhat info i gathered about college
Is first year internship possible?
so i am a college fresher, college will start this july i am taking the ict branch which many say is similar to cse + ece
<1>i want to know that by the end of my first year college is internship possible in tech field?
<2>if it is how can i get it?
<3>and what websites and things should i always check for interships?
like i dont even know what is summer internship
and where to check for internship
thx for reading the msg
What are yall doing rn?
i have been doing python for the las 10 days
i will be joining in ict
what are yall doing ?
Hostel
so i will be joining pdeu ict as fresher
i want to know if there are any good hostels nearby the campus
i asked the admin office they said they dont provide hostels for people living in ahmedabad
anyone who knows other hostels except the college hostel
and about that hostels facility and the fees of hostel
thx
Career options through ICT
i got into ict and wanted to know about all career options available thorugh it