Q:

Cannot get code to retrieve exponent of Input(), AND determine if it's a number or a letter to output proper comment

UPDATE: I found out that 'break' is incorrect for me to use here, and I should be using 'sysexit()' instead.
Value = input("Put a number in here, watch it multiply itself! [q to quit]: ")
try:
    Value == 'q'
    sysexit()
except Value == ValueError:
    print("Excuse me; I don't think that's a number. Please try again!")
except request == int(Value):
    print(value + " multipled by " + value + "is " (value * value))

And the code loads now, but it won't accept any inputs, giving me two errors:
Traceback (most recent call last):
File "More if then practice", line 4, in <module>
sysexit()
NameError: name 'sysexit' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "More if then practice", line 5, in <module>
    except Value == ValueError:
TypeError: catching classes that do not inherit from BaseException is not allowed

***Repl Closed***

Still not sure what to do, however.
I'm learning Python using o'reilly's series of books, and there's an demonstration of how to use a "While True" loop, to check an input() variable
while True: 
    value = input(" Integer, please [q to quit]: ") 
    if value = = 'q':     # quit function 
       break
    number = int( value)
  if number % 2 = = 0: # an even number
    continue 
print( number, "squared is", number* number)

(Bill Lubanovic. Introducing Python - O'Reilly Media, Inc..)
For exercise purposes, I have been trying to make this code capable of the following:

q for quit ability
detecting whether the input is a number or letter/other
multiplying both odd and even numbers.

I had a version I wrote last night that would at least run, but wouldn't multiply, and this morning I found a StackOverflow post where a "try/except" argument was provided with two exceptions. Now my code looks like this:
Value = input("Put a number in here, watch it multiply itself! [q to quit]: ")
try:
    Value == 'q'
    break
except ValueError:
    print("Excuse me; I don't think that's a number. Please try again!")
except request == int(Value):

print(value + " multipled by " + value + "is " (value * value))

But I keep getting the following error:
line 4
break
^
SyntaxError: 'break' outside loop

I've shifted code around, used different a while true/for loop instead, and double checked syntax from other posts on the internet, and believe I'm using it correctly here.
Value = input("Put a number in here, watch it multiply itself! [q to quit]: ")
try:
    Value == 'q'
    break
except ValueError:
    print("Excuse me; I don't think that's a number. Please try again!")
except request == int(Value):

print(value + " multipled by " + value + "is " (value * value))

But I keep getting the following error:
line 4
break
^
SyntaxError: 'break' outside loop

Expected: To be executable to where I can meet the standards listed in the initial Summary
Actual: Crashes due to the error listed in the Summary and Code sections.

A:

Starting with your original code:
while True: 
    value = input(" Integer, please [q to quit]: ") 
    if value = = 'q':     # quit function 
       break
    number = int( value)
  if number % 2 = = 0: # an even number
    continue 
print( number, "squared is", number* number)

Sources of error could include

Indentation is off (important in python)

Your if statements need to be the same level
Your break needs another space
Your print() needs to be indented inside loop

= = needs to be == (no spaces, since this will cause a SyntaxError)
No error checking (I believe this is your intent with "detecting whether the input is a number or letter/other")

To include your requirements of:

multiplying both odd and even numbers.

Simply take out your second if statement. 

q for quit ability

Simply fix = = -> ==

detecting whether the input is a number or letter/other

Try to cast the input to int() and if it throws a ValueError exception, it is "other"
Putting it together:
while True:
    value = input("Please enter an integer (q to quit):\n>>>") # I like aesthetic prompts
    if value == 'q': # quit function
        break
    try:
        number = int(value)
    except ValueError:
        print("That's not a valid number")
        continue
    print("{} squared is {}".format(number, number ** 2))

With sample output:
Please enter an integer (q to quit):
>>>5
5 squared is 25
Please enter an integer (q to quit):
>>>16
16 squared is 256
Please enter an integer (q to quit):
>>>stop
That's not a valid number
Please enter an integer (q to quit):
>>>6
6 squared is 36
Please enter an integer (q to quit):
>>>q

Process finished with exit code 0

Hope this helps, and welcome to StackOverflow!

