Coder Social home page Coder Social logo

utshav-paudel / 100daysofcode Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 10.9 MB

Hello everyone this repo contains my 100 days of learning python.

Jupyter Notebook 74.17% Python 21.04% HTML 4.52% CSS 0.26%
100-days-of-code 100daysofcode 100daysofpython coding-challenge learning learning-python python pythonlearning

100daysofcode's Introduction

GIF

Hi ๐Ÿ‘‹, I'm Utshav Paudel

A passionate Data science and Ml learner from Nepal

utshav-paudel

I am a Machine learning and deep learning enthusiast. My goals is to learn consistently and share my learnings here . I love machine learning and AI because learning this feel like I am unlocking new superpower everyday.

A little more about me...

Connect with me:

utshav paudel

Languages and Tools:

c cplusplus git pandas python pytorch seaborn

100daysofcode's People

Contributors

utshav-paudel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

100daysofcode's Issues

Python stops responding to this below code why?

import random
from turtle import Turtle,Screen

screen=Screen()
screen.setup(width=500,height=400)   #setting screen size


race_on=False
#creating user input for bet
user_bet=screen.textinput(title="Make your bet",prompt="whicht turtle will wint the race? Enter a color:")
print(user_bet)
#creating list for turtle colors
color=["red","green","yellow","blue","orange","purple"]
# changing y axis make turtle in diff positon in start
y_position=[-100,-60,-20,20,60,100]
new_tur=[]
#putting turtle to start
for i in range(6):
    tur=Turtle()
    tur.shape("turtle")
    tur.color(color[i])
    tur.penup()
    tur.goto(x=-230,y=y_position[i])
    new_tur.append(tur)

if user_bet:
    race_on=True
while race_on:
    for turtle in new_tur:
        if turtle.xcor()>230:
                race_on=False
                winning_tur=turtle.pencolor()
                if winning_tur==user_bet:
                    print(f"You've won {winning_tur} is the winner")
                else:
                    print(f"You've lost {winning_tur} is the winner")
                    turtle.forward(random.randint(0,10))

screen.exitonclick()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.