Python Turtle + User Inputs

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

ความคิดเห็น • 22

  • @aafiyamemon9535
    @aafiyamemon9535 4 ปีที่แล้ว +5

    sir i want to take an input as text in turtle canvas itself can you suggest me the way to do so?......

    • @trinanjan26
      @trinanjan26 4 ปีที่แล้ว

      Same here...I also need that hep tho

    • @codekingchannel
      @codekingchannel 3 ปีที่แล้ว

      I have made a video on it in case you still need it.
      Link is th-cam.com/video/gm4lVKRiUbE/w-d-xo.html
      You can detect the keys pressed by the user, and draw it directly on the turtle canvas using this method.

  • @fullf2400
    @fullf2400 4 ปีที่แล้ว +3

    Thank You so much you helped me a lot with my homework!

  • @Shiva-ur3ow
    @Shiva-ur3ow 6 ปีที่แล้ว +4

    yeah but what if I want to do it in the literal turtle graphics?

    • @Ash-ti1ei
      @Ash-ti1ei 5 ปีที่แล้ว

      turtle.shape("turtle")

    • @adenlynn
      @adenlynn 5 ปีที่แล้ว

      Tell me if you find it

    • @a-bison
      @a-bison 3 ปีที่แล้ว

      there is a software that helps you do that, I don't remember the name but it goes something like paint or something idk
      edit : it is called turtle. just turtle. how can I be so dumb

    • @codekingchannel
      @codekingchannel 3 ปีที่แล้ว

      I have made a video on it in case you still need it.
      Link is th-cam.com/video/gm4lVKRiUbE/w-d-xo.html
      You can detect the keys pressed by the user, and draw it directly on the turtle canvas using this method.

    • @Shiva-ur3ow
      @Shiva-ur3ow 3 ปีที่แล้ว

      @@codekingchannel Thanks. Posted this 2 years ago and I actually got decent at turtle. But I’ve moved on now. Hopefully this will help out the new developers who come to watch this video.

  • @yousefmjtv
    @yousefmjtv 3 ปีที่แล้ว +2

    THANKS BRO NICE WORK

  • @MrEarthquaker
    @MrEarthquaker 4 ปีที่แล้ว

    I'm using a Pydroid. Even this doesn't work:
    import turtle
    data = input ("hello, data:")
    // EOFError: EOF when reading a line

    • @Mohammed-rx6ok
      @Mohammed-rx6ok 4 ปีที่แล้ว

      int(input ("hello, data:"))

    • @sjansjna8895
      @sjansjna8895 2 ปีที่แล้ว

      Same problem bro how resolve it?

    • @sjansjna8895
      @sjansjna8895 2 ปีที่แล้ว

      import turtle
      lenght = int(input("enter:"))
      turtle.fd(lenght)
      turtle.done()

    • @MrEarthquaker
      @MrEarthquaker 2 ปีที่แล้ว

      @@sjansjna8895
      answer by creator:
      "Unfortunately, graphical applications don't have terminal attached on Android, so input() cannot be used there. When you import turtle, your program starts to run in graphical mode, as this module uses tkinter."

    • @sjansjna8895
      @sjansjna8895 2 ปีที่แล้ว

      @@MrEarthquaker thanks brother it works pretty well on my pc im using sublime Text to run it ❤️

  • @paddingtonlife3892
    @paddingtonlife3892 2 ปีที่แล้ว

    God damnit this guy is so slow