Oct-30-2017, 11:53 PM
(This post was last modified: Oct-31-2017, 12:26 AM by sparkz_alot.)
hi there guys, I am new with python and need help with this issue as I can't seem to find any answer when I run the code. The code I used is :-
x= int(input("Enter a number: "))
if x == 1:
y += 1
print("y")
Additionally is this code correct below.
from math import*
x = int(input("Enter a number: "))
y = 5
if x ** sqrt(2) :
y = y + x
print(y)
I know you guys must be like ask teacher but I did he said to check the materials or online. How am I gonna learn when you can't help me with the mistake I create and also help me understand it.
x= int(input("Enter a number: "))
if x == 1:
y += 1
print("y")
Additionally is this code correct below.
from math import*
x = int(input("Enter a number: "))
y = 5
if x ** sqrt(2) :
y = y + x
print(y)
I know you guys must be like ask teacher but I did he said to check the materials or online. How am I gonna learn when you can't help me with the mistake I create and also help me understand it.