The code below gives an infinite loop even when I type in y or n. How do I fix it? /u/Rifted-06 Python Education

The code below gives an infinite loop even when I type in y or n. How do I fix it? /u/Rifted-06 Python Education

choice = input("Do you want to generate another password? Answer y/n: ") while choice != "y" or choice != "n": choice = input("Invalid response. Answer y/n: ") 

submitted by /u/Rifted-06
[link] [comments]

​r/learnpython choice = input(“Do you want to generate another password? Answer y/n: “) while choice != “y” or choice != “n”: choice = input(“Invalid response. Answer y/n: “) submitted by /u/Rifted-06 [link] [comments] 

choice = input("Do you want to generate another password? Answer y/n: ") while choice != "y" or choice != "n": choice = input("Invalid response. Answer y/n: ") 

submitted by /u/Rifted-06
[link] [comments]  choice = input(“Do you want to generate another password? Answer y/n: “) while choice != “y” or choice != “n”: choice = input(“Invalid response. Answer y/n: “) submitted by /u/Rifted-06 [link] [comments]

Read more

How can I align the buttons and the text box /u/TheEyebal Python Education

How can I align the buttons and the text box /u/TheEyebal Python Education

I am making a GUI calculator using tkinter and I am trying to position the text box and the buttons.

I want the buttons to be 3×3 with 0 at the bottom but I am having trouble.

Can someone assist me?

def text_box(): t_box = tk.Text(screen, width=25 ,height=5, font=("Ariel", 10)) # put cursor to left # make widget (wxh) stick # number should start at 0 # While GUI is running have starting number at 0 t_box.grid(row=0, column=0, padx=10, pady=20) def num_buttons(): btns = [] for i in range(0, 10): btn_storage = tk.Button(screen, text=f"{i}", font=("Ariel", 10)) row = i // 4 # Integer division to get row col = i % 4 # Modulo to get column btn_storage.grid(row=row + 1, column=col, sticky=tk.E, padx=2, pady=2) btns.append(btns) 

Here is an example of what I want it to look like

_________ _text box_ 1 2 3 4 5 6 7 8 9 0 

submitted by /u/TheEyebal
[link] [comments]

​r/learnpython I am making a GUI calculator using tkinter and I am trying to position the text box and the buttons. I want the buttons to be 3×3 with 0 at the bottom but I am having trouble. Can someone assist me? def text_box(): t_box = tk.Text(screen, width=25 ,height=5, font=(“Ariel”, 10)) # put cursor to left # make widget (wxh) stick # number should start at 0 # While GUI is running have starting number at 0 t_box.grid(row=0, column=0, padx=10, pady=20) def num_buttons(): btns = [] for i in range(0, 10): btn_storage = tk.Button(screen, text=f”{i}”, font=(“Ariel”, 10)) row = i // 4 # Integer division to get row col = i % 4 # Modulo to get column btn_storage.grid(row=row + 1, column=col, sticky=tk.E, padx=2, pady=2) btns.append(btns) Here is an example of what I want it to look like _________ _text box_ 1 2 3 4 5 6 7 8 9 0 submitted by /u/TheEyebal [link] [comments] 

I am making a GUI calculator using tkinter and I am trying to position the text box and the buttons.

I want the buttons to be 3×3 with 0 at the bottom but I am having trouble.

Can someone assist me?

def text_box(): t_box = tk.Text(screen, width=25 ,height=5, font=("Ariel", 10)) # put cursor to left # make widget (wxh) stick # number should start at 0 # While GUI is running have starting number at 0 t_box.grid(row=0, column=0, padx=10, pady=20) def num_buttons(): btns = [] for i in range(0, 10): btn_storage = tk.Button(screen, text=f"{i}", font=("Ariel", 10)) row = i // 4 # Integer division to get row col = i % 4 # Modulo to get column btn_storage.grid(row=row + 1, column=col, sticky=tk.E, padx=2, pady=2) btns.append(btns) 

Here is an example of what I want it to look like

_________ _text box_ 1 2 3 4 5 6 7 8 9 0 

submitted by /u/TheEyebal
[link] [comments]  I am making a GUI calculator using tkinter and I am trying to position the text box and the buttons. I want the buttons to be 3×3 with 0 at the bottom but I am having trouble. Can someone assist me? def text_box(): t_box = tk.Text(screen, width=25 ,height=5, font=(“Ariel”, 10)) # put cursor to left # make widget (wxh) stick # number should start at 0 # While GUI is running have starting number at 0 t_box.grid(row=0, column=0, padx=10, pady=20) def num_buttons(): btns = [] for i in range(0, 10): btn_storage = tk.Button(screen, text=f”{i}”, font=(“Ariel”, 10)) row = i // 4 # Integer division to get row col = i % 4 # Modulo to get column btn_storage.grid(row=row + 1, column=col, sticky=tk.E, padx=2, pady=2) btns.append(btns) Here is an example of what I want it to look like _________ _text box_ 1 2 3 4 5 6 7 8 9 0 submitted by /u/TheEyebal [link] [comments]

Read more

Stuck at converting sign language poses to openpose coco format. /u/ExpertButterfly6046 Python Education

Stuck at converting sign language poses to openpose coco format. /u/ExpertButterfly6046 Python Education

Are there any libraries or methods available to convert
https://github.com/sign-language-processing/pose
this pose format to
https://github.com/CMU-Perceptual-Computing-Lab/openpose
to 18 points.

submitted by /u/ExpertButterfly6046
[link] [comments]

​r/learnpython Are there any libraries or methods available to convert https://github.com/sign-language-processing/pose this pose format to https://github.com/CMU-Perceptual-Computing-Lab/openpose to 18 points. submitted by /u/ExpertButterfly6046 [link] [comments] 

Are there any libraries or methods available to convert
https://github.com/sign-language-processing/pose
this pose format to
https://github.com/CMU-Perceptual-Computing-Lab/openpose
to 18 points.

submitted by /u/ExpertButterfly6046
[link] [comments]  Are there any libraries or methods available to convert https://github.com/sign-language-processing/pose this pose format to https://github.com/CMU-Perceptual-Computing-Lab/openpose to 18 points. submitted by /u/ExpertButterfly6046 [link] [comments]

Read more

I need some idea /u/emiroMagno Python Education

I need some idea /u/emiroMagno Python Education

Hello, in these days I begin to see how it works Django, I need some idea to do a simple exercises to consolidate the base. Thanks.

submitted by /u/emiroMagno
[link] [comments]

​r/learnpython Hello, in these days I begin to see how it works Django, I need some idea to do a simple exercises to consolidate the base. Thanks. submitted by /u/emiroMagno [link] [comments] 

Hello, in these days I begin to see how it works Django, I need some idea to do a simple exercises to consolidate the base. Thanks.

submitted by /u/emiroMagno
[link] [comments]  Hello, in these days I begin to see how it works Django, I need some idea to do a simple exercises to consolidate the base. Thanks. submitted by /u/emiroMagno [link] [comments]

Read more

Pythonprinciples /u/naxhass111 Python Education

Pythonprinciples /u/naxhass111 Python Education

Going to learn Python

What do you think guys think about this site

submitted by /u/naxhass111
[link] [comments]

​r/learnpython Going to learn Python What do you think guys think about this site submitted by /u/naxhass111 [link] [comments] 

Going to learn Python

What do you think guys think about this site

submitted by /u/naxhass111
[link] [comments]  Going to learn Python What do you think guys think about this site submitted by /u/naxhass111 [link] [comments]

Read more

Collaboration /u/Material_Photo_7894 Python Education

Collaboration /u/Material_Photo_7894 Python Education

Would anyone like to help me create a discord server for sapiosexuals

submitted by /u/Material_Photo_7894
[link] [comments]

​r/learnpython Would anyone like to help me create a discord server for sapiosexuals submitted by /u/Material_Photo_7894 [link] [comments] 

Would anyone like to help me create a discord server for sapiosexuals

submitted by /u/Material_Photo_7894
[link] [comments]  Would anyone like to help me create a discord server for sapiosexuals submitted by /u/Material_Photo_7894 [link] [comments]

Read more

I am a 14-year-old guy with a dream of becoming a programmer at Google or Microsoft. How can I achieve this goal? /u/Educational_Cow8366 Python Education

I am a 14-year-old guy with a dream of becoming a programmer at Google or Microsoft. How can I achieve this goal? /u/Educational_Cow8366 Python Education

I attended courses, bought a book, and truly live for this, but for some reason, I don’t see significant progress.

submitted by /u/Educational_Cow8366
[link] [comments]

​r/learnpython I attended courses, bought a book, and truly live for this, but for some reason, I don’t see significant progress. submitted by /u/Educational_Cow8366 [link] [comments] 

I attended courses, bought a book, and truly live for this, but for some reason, I don’t see significant progress.

submitted by /u/Educational_Cow8366
[link] [comments]  I attended courses, bought a book, and truly live for this, but for some reason, I don’t see significant progress. submitted by /u/Educational_Cow8366 [link] [comments]

Read more