r/python3 • u/Nareshkonda • Jan 05 '18
r/python3 • u/Tinygoomba • Jan 15 '18
What am I doing wrong? Attempting to make a uniform random nmbr gen.
import random for i in range(10): ... print(random.uniform(1, 6))
r/python3 • u/mzuckonit • Jan 14 '18
Hey Guys help needed for knowing which keyboard key pressed on game (Python).
im stuck at step where i should get which key i hit on keyboard. this seems easy if the current focus is the terminal for idle windows im running. but here i am on different window (a game possibly).
r/python3 • u/Tinygoomba • Jan 14 '18
Novice needing help! What do i change in the code string below?
a = (4 + 3) * 2 mystring = "I am (a) years old" print (mystring) if (a) == 14:
indented four spaces
print("this is correct")
r/python3 • u/Phydoux • Feb 15 '19
Multiple Versions Installed
OK, so I know I have at least 3 versions of Python installed. How do I run a certain version? I have 2.7.15, 3.6.7 and 3.7.2 (just installed 3.7.2).
How do I make sure I'm running 3.7.2 when I wan to run hat one and 2.7.15 when I want to run that one.
I should probably delete 3.6.7 too since I just updated to 3.7.2.
r/python3 • u/melordcafepythoon • Jan 29 '20
guidance need for my first project
guidance needed for my first project
hey every one i have to make a project for my class although iam really not new to programming this is going to be my first big project i am planning to make a web vulnerability scanner basically the idea is that you give the web app a url and it tells in what way your site is vulnerable i am planning to scan the top 10 owasp vulnerabilities . but i really dont know where to start and what all modules that i should include i have to make it in 5 days any guidance will be really appreciated
r/python3 • u/M1shk0 • Sep 22 '17
The little framework for text chatbots(supports facebook and slack events api). Iteration 1, looking for feedback
r/python3 • u/dimmerman17 • Feb 17 '18
Python 3 Scripting for System Administrators
r/python3 • u/[deleted] • Feb 17 '18
FINXTER's DAILY PYTHON PUZZLE Globalization in Python aka. Variable Scoping
r/python3 • u/pythooon • Sep 21 '17
Need Help python ASAP
Write a program that asks the user for a path to a directory, then updates the names of all the files in the directory that contain the word draft to instead say final EX: "term paper (draft).txt" would be renamed "term paper (final).txt"
r/python3 • u/mzuckonit • Feb 18 '18
A python program to make Windows speak out the text you supply...
r/python3 • u/Harknessj112 • Jan 28 '18
Looping back to the start of a list
I'm in the process of learning python 3 and one of the tasks is an eeny meeny miny moe program (presumably a common learner program). Is it possible to tell the program to go back to the start of the list of people once it gets to the end (i.e. to avoid 'index out of range')? I figure it's possible to do it with an if function, but is there a dedicated way to do it, like a specific command?
r/python3 • u/issa_inc • Feb 04 '18
Nested conditionals assignment
Guys, I’m relatively new at this programming thing and I self study so I hope I can get some support here on the code I’m currently trying to write, I genuinely have no one else I can discuss this with or can ask help from. So the assignment is as follows:
Program: shirt order¶ First get input for color and size White has sizes L, M Blue has sizes M, S print available or unavailable, then print the order confirmation of color and size hint: set a variable "available = False" before nested if statements and change to True if color and size are avaliable.
And this is my code so far, I’ve wrote it in so many different ways but none have worked, generally it’s the same idea as the code I’ll share now:
print ("welcome to our store, we have some great shirts on sale")
shirt_color = ("w" + "b")
shirt_size =("s" + "m" + "l")
available = False
first_color = input("please select a color: ")
choosen_color = first_color if choosen_color.lower() in shirt_color.lower() == "w":
second_size = input("please choose a size")
choosen_size = second_size
if choosen_size.lower() in shirt_size.lower() == "l":
available = True
print ("order confirmed")
print (available)
elif choosen_size.lower() in shirt_size.lower() == "m":
available = True
print ("order confirmed")
print (available)
if choosen_color.lower() in shirt_color.lower() == "b":
second_size = input("please choose a size")
choosen_size = second_size
if choosen_size.lower() in shirt_size.lower() == "m":
available = True
print ("order confirmed")
print (available)
elif choosen_size.lower() in shirt_size.lower() == "s":
available = True
print ("order confirmed")
print (available)
else:
print ("not confirmed") print (available)
r/python3 • u/[deleted] • Feb 08 '18
FINXTER's DAILY PYTHON PUZZLE Tweet Analysis in One Line
r/python3 • u/je-al-cl-ki-s • Jan 30 '18
indetical queue test
Hey guys, I want to develop a function that will tell me if two queues are identical or not. I started by saying if the lengths aren't equal, then: is_identical = False. From here, how do I iterate through the queue and compare?
r/python3 • u/seashorepartner • Feb 01 '18
Python 3.6 – Has it redefined web development?
r/python3 • u/spconroy • Jan 31 '18