point scoring system
posted to Ask by kiki2005

Hello @kiki2005,

I started the program out for you. By using the len command in python, it will return the length of the string. From there, simply use other functions such as .isupper() and .islower().

points = 0 # set the point value to zero

password = input("Enter your password: ")
length = len(password) # length of password

uppers = [x for x in password if x.isupper()] # check for uppercase letters
uppernum = len(uppers) # find the number of uppercase letters

lowers = [x for x in password if x.islower()] # check for lowercase letters
lowernum = len(lowers) # find the number of lowercase letters

. . .


points = points + length + (uppernum * 5) + (lowernum * 5) # add the final point total
print(points) # get your answer

Using if statements, or logical analysis, can change how the point values are used. Instead of doing (uppernum * 5) or (lowernum * 5), you can do if . . . lowernum =+ 5.

Hope this helped!

Is it possible to clear the screen?
posted to Ask by GitOverHere

Yes! Import the library header file <stdlib.h> and use system("CLS") to clear the terminal.

What is the program you enjoyed coding the most?
posted to Ask by enigma_dev

For me, I enjoyed creating things that helped me in school. I made a Punnet Square Probability Engine and a Linear System Equation's solver. I showed these programs off to my friends and their response brought a lot of pride to my coding.

Advanced Harmonograph
posted to Share by EchoCoding

@mkhoi Thank you!

Advanced Harmonograph
posted to Share by EchoCoding

@Sidewalk Thank you so much! Appreciate the support.

can I get help with this question please
posted to Ask by ayaanHasan

@ayaanHasan I quickly wrote this, let me know if it solved your problem!

def isOldEnough():
  try:
    if num > 0:
      if num >= 18:
        print(True)
      elif num < 18:
        print(False)
  except ValueError:
    print("Invalid Argument.")
isOldEnough()
REPL BeatZ
posted to Share by EchoCoding

@RossJames thank you so much!

See your code execute as you write it!
posted to Share by FraserGreenlee

This looks very interesting, although a tutorial or documentation of some sort would be great. It seems very confusing, although the complexity is awesome!

c programming
posted to Ask by zeno99

@JustARatherRidi Love this answer! Wish I could up vote it twice! Very well put together and a lot of explanation.

The Best Way To Code (Joke)
posted to Share by Edgod

Haha! Love this! I'll have to try this sometime.

error
posted to Ask by kiki2005

You don't need the global keyword. In Python, globals are only needed if a variable is declared within a function. Simply remove the global keyword and the code will run as expected.

Besides that, you haven't called the function menu.

This should work:

print("Welcome to Password Checker")
def menu():
  print("Please enter a number that fits with one of the below.")
  print("1: Password Checker")
  print("2: Password Generator")
  print("3: Quit")
  menuSelection = int(input("..."))

  character = 0

  if menuSelection == 1:
    password = input("please enter a password")
    if password != "":
      if character <= 8:
        print ("this password is too short")
      if character >= 24:
        print("this password is too long")
      if character >= 9 and character <= 23:
        character=0
        character = character + 1
        point = 0 
        length = len(password)
        uppers = [x for x in password if x.isupper()] 
        uppernum = len(uppers) 
        lowers = [x for x in password if x.islower()] 
        lowernum = len(lowers)
        point = point + length + (uppernum * 5) + (lowernum * 5)
        print(point)
  elif menuSelection == 2:
    print("lets generate!") # create the generator here
  elif menuSelection == 3:
    exit()
  else:
    exit()

menu()
point scoring system
posted to Ask by kiki2005

@kiki2005 Of course! If you have any other questions feel free to ask.

Dynamic JS-free background.
posted to Share by kaldisberzins

This is awesome! I'm going to make a website and integrate this as soon as I can. And I'll credit you, not to worry :)

What's the funniest mistake you've ever seen (or made!) in a line of code?
posted to Ask by katyadee

My worst coding error would probably have to be making a 300+ line program and running it, just to see that my indentation was wrong. Mind you, there were a plethora of indentations :(

Web Filter Bypass
posted to Ask by 20rduncan

@SPQR Ah, I see.

Web Filter Bypass
posted to Ask by 20rduncan

@Sidewalk Glad to hear it!

Web Filter Bypass
posted to Ask by 20rduncan

I'd appreciate it if you marked that as the answer as well :)

Web Filter Bypass
posted to Ask by 20rduncan

@20rduncan There is a way to bypass school restrictions. There is a repl by @SPQR which downloads Firefox into the browser window. It works very well and doesn't include any blockages from school networks. I personally have used it for a variety of things and it works perfectly!

LINK: https://repl.it/@SPQR/firefox

Error message
posted to Ask by Mr_Courtesy

Your error is very unclear? Please post what you've tried and what you expect to happen, in which file, as you have an abundance of them.

Secret Message
posted to Ask by Steven_The_GuyT

The message is very hard to figure out! Great job to everyone who did, but I simply do not have the patience or skill to do so!

Python Module Info
posted to Share by EchoCoding

Don't mind the poorly chosen names for the variables :)

Clean Flask Website
posted to Share by EchoCoding

Any suggestions, just comment!

can I get help with this question please
posted to Ask by ayaanHasan

@ayaanh22 How is it not working? It prints True of False depending on the scenario.

Working Chatroom
posted to Share by pyelias

This is actually amazing. Can you make a chatroom that needs a certain ID to get into? Say if you wanted to talk to 3 or 4 select people without a massive chatroom seeing it.

Working Chatroom
posted to Share by pyelias

@pyelias: Awesome! I'd do it myself but I'm not nearly as skilled haha

REPL BeatZ
posted to Share by EchoCoding

@JoeyMartinez65 first of all, thanks for your support. i used a lot of css, mostly classes and id's and just played around with colors to make the shape into headphones. it's actually a model of the headphones i wear irl.

Graphics Designer!
posted to Share by EchoCoding

@pyelias: The whole project took about a week and a half (around 2 hours a day). The 3D engine I used was on Windows 10, I think whatever 3D program they have. I just had to convert the object created to Python using it's coordinates on the graph.

Graphics Designer!
posted to Share by EchoCoding

@pyelias: You're quite right! I had to hand - type the coordinates, but the general outline was coded on a different 3D modeling platform.

Graphics Designer!
posted to Share by EchoCoding

@streamlined: Much appreciated!

Graphics Designer!
posted to Share by EchoCoding