Why some statements which shows 'SyntaxError' in Anaconda Prompt, shows 'TypeError' and some give o/p in...
up vote
-4
down vote
favorite
in jupyter notebook:
,.0
TypeError: 'float' object is not callable
,1
TypeError: 'int' object is not callable
,.1+.1
TypeError: 'float' object is not callable
previously i checked,
,5/6,22/7, 5//6,22//7, 5%6,22%7
results error message,
TypeError: 'int' object is not callable
but now shows o/p,
(0.8333333333333334, 3.142857142857143, ('5//6,22//7,', '5%6,22%7'))
and
,
gives o/p as:
''
but in python prompt, the o/p of above ones result as SyntaxError.
python
add a comment |
up vote
-4
down vote
favorite
in jupyter notebook:
,.0
TypeError: 'float' object is not callable
,1
TypeError: 'int' object is not callable
,.1+.1
TypeError: 'float' object is not callable
previously i checked,
,5/6,22/7, 5//6,22//7, 5%6,22%7
results error message,
TypeError: 'int' object is not callable
but now shows o/p,
(0.8333333333333334, 3.142857142857143, ('5//6,22//7,', '5%6,22%7'))
and
,
gives o/p as:
''
but in python prompt, the o/p of above ones result as SyntaxError.
python
1
Could you please add the code you're trying to execute?
– toti08
yesterday
1
please format your code and tracebacks, you havn't shown aSynaxError
outside of the title
– Chris_Rands
yesterday
1
What are you trying to do? You write on the console,.0
? What's that supposed to mean? And also, what doeso/p
mean?
– toti08
yesterday
I mean to say why jupyter notebook not shows as SyntaxError as in python prompt?
– Damodara Sahu
yesterday
add a comment |
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
in jupyter notebook:
,.0
TypeError: 'float' object is not callable
,1
TypeError: 'int' object is not callable
,.1+.1
TypeError: 'float' object is not callable
previously i checked,
,5/6,22/7, 5//6,22//7, 5%6,22%7
results error message,
TypeError: 'int' object is not callable
but now shows o/p,
(0.8333333333333334, 3.142857142857143, ('5//6,22//7,', '5%6,22%7'))
and
,
gives o/p as:
''
but in python prompt, the o/p of above ones result as SyntaxError.
python
in jupyter notebook:
,.0
TypeError: 'float' object is not callable
,1
TypeError: 'int' object is not callable
,.1+.1
TypeError: 'float' object is not callable
previously i checked,
,5/6,22/7, 5//6,22//7, 5%6,22%7
results error message,
TypeError: 'int' object is not callable
but now shows o/p,
(0.8333333333333334, 3.142857142857143, ('5//6,22//7,', '5%6,22%7'))
and
,
gives o/p as:
''
but in python prompt, the o/p of above ones result as SyntaxError.
python
python
edited yesterday
asked yesterday
Damodara Sahu
56
56
1
Could you please add the code you're trying to execute?
– toti08
yesterday
1
please format your code and tracebacks, you havn't shown aSynaxError
outside of the title
– Chris_Rands
yesterday
1
What are you trying to do? You write on the console,.0
? What's that supposed to mean? And also, what doeso/p
mean?
– toti08
yesterday
I mean to say why jupyter notebook not shows as SyntaxError as in python prompt?
– Damodara Sahu
yesterday
add a comment |
1
Could you please add the code you're trying to execute?
– toti08
yesterday
1
please format your code and tracebacks, you havn't shown aSynaxError
outside of the title
– Chris_Rands
yesterday
1
What are you trying to do? You write on the console,.0
? What's that supposed to mean? And also, what doeso/p
mean?
– toti08
yesterday
I mean to say why jupyter notebook not shows as SyntaxError as in python prompt?
– Damodara Sahu
yesterday
1
1
Could you please add the code you're trying to execute?
– toti08
yesterday
Could you please add the code you're trying to execute?
– toti08
yesterday
1
1
please format your code and tracebacks, you havn't shown a
SynaxError
outside of the title– Chris_Rands
yesterday
please format your code and tracebacks, you havn't shown a
SynaxError
outside of the title– Chris_Rands
yesterday
1
1
What are you trying to do? You write on the console
,.0
? What's that supposed to mean? And also, what does o/p
mean?– toti08
yesterday
What are you trying to do? You write on the console
,.0
? What's that supposed to mean? And also, what does o/p
mean?– toti08
yesterday
I mean to say why jupyter notebook not shows as SyntaxError as in python prompt?
– Damodara Sahu
yesterday
I mean to say why jupyter notebook not shows as SyntaxError as in python prompt?
– Damodara Sahu
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372688%2fwhy-some-statements-which-shows-syntaxerror-in-anaconda-prompt-shows-typeerr%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Could you please add the code you're trying to execute?
– toti08
yesterday
1
please format your code and tracebacks, you havn't shown a
SynaxError
outside of the title– Chris_Rands
yesterday
1
What are you trying to do? You write on the console
,.0
? What's that supposed to mean? And also, what doeso/p
mean?– toti08
yesterday
I mean to say why jupyter notebook not shows as SyntaxError as in python prompt?
– Damodara Sahu
yesterday