Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Python
Using Brackets within a print code
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
frostedgoddess
New Member
Join Date:
Aug 2014
Posts:
1
#1
Using Brackets within a print code
Aug 20 '14, 08:36 AM
Code:
a = int(input('Enter a number: ')) number = a/3.95 print(1 Messenger(s) =, number, Modus)
this is the code, the brackets around the (s) do not function as they break the rest of the print code, how can I fix this?
Last edited by
bvdet
;
Aug 20 '14, 11:36 AM
.
Reason:
Add code tags
dwblas
Recognized Expert
Contributor
Join Date:
May 2008
Posts:
626
#2
Aug 20 '14, 08:14 PM
Messenger(s) calls the function Messenger, and the variable you are printing, named Modus, is not declared anywhere. I would suggest reading page 16 and 17 in
this tutorial
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment