Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8328523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:28:21+00:00 2026-06-09T01:28:21+00:00

Very new to python, trying this – def newlines(): print() print() print() question =

  • 0

Very new to python, trying this –

def newlines():
    print()
    print()
    print()    
question = "Which online Course you have signed up, dude?"
response = "Good Luck to you, dude!"
print(question), newlines(), input(), newlines(), print(response)

In Python 3.2.* the output is this

Which online Course you have signed up, dude?



Nothing



Good Luck to you, dude!

(None, None, "Nothing", None) # Where this output is coming from ?

Also this is not happening with python 3.3 beta

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:28:24+00:00Added an answer on June 9, 2026 at 1:28 am

    You must be at the interactive shell. When I run your code as a file, I get this output:

    $ python3.2 test.py
    Which online Course you have signed up, dude?
    
    
    
    dlkjdf
    
    
    
    Good Luck to you, dude!
    $
    

    You only get your output at the console:

    >>> def newlines():
    ...     print()
    ...     print()
    ...     print()    
    ... 
    >>> question = "Which online Course you have signed up, dude?"
    >>> response = "Good Luck to you, dude!"
    >>> 
    >>> print(question), newlines(), input(), newlines(), print(response)
    Which online Course you have signed up, dude?
    
    
    
    dljdldk
    
    
    
    Good Luck to you, dude!
    (None, None, 'dljdldk', None, None)
    >>> 
    

    This is because the console will print the representation of the last thing you typed in. The last statement is actually a tuple, so it gets printed at the end. Here’s some examples:

    >>> 3
    3
    >>> 4
    4
    >>> 3, 4, None, "hey"
    (3, 4, None, 'hey')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very new to python and can't understand why this isn't working. I have a
I am very new to Python and I have been trying to detect missing
I'm very new to PyQt and Python, so hopefully this question makes sense. I
I am very new with Python and I have just received this message while
I am very new to Python, so forgive me if this question is very
I am very new to Python, and trying to figure out how to create
I very new to Python, and fairly new to regex. (I have no Perl
I am a very new in Python so please forgive me the basic question.
I am very new to python programming and have yet to buy a textbook
I am very new to Python and I have a json news feed that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.