Python Forum
Returning numeral output in VS code terminal
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Returning numeral output in VS code terminal
#1
Beginner question here...

No matter what kind of variable I write (message, name), the terminal gives me the same numeral (with some letters) output in het beginning of the output.
For example, I write:

name = 'ada lovelace'
print(name.title())

I receive in the terminal:
14947888-3cd3-44ee-9a5e-9eb302bc1811Ada Lovelace

It's the same sequence, no matter the code I write. What am I doing wrong here? Did something went wrong with naming and/or placing the file items in the folder?

Many thanks in advance Smile
Also, this is my first post, any feedback on it is welcome (please be gentle as I am autistic).
Reply
#2
What do you mean by "No matter what kind of variable I write (message, name)"? If you are printing to stdout, I would expect that you are seeing message followed by name in the terminal. If message == "Hello" your code would print "Hello Ada Lovelace". I could be interpreting your post incorrectly.

If you are running Python in a VSCode terminal, I would expect something like this:
Output:
(seismic-py3.13) C:\Projects\MAST_lab\SeismicMast>python Python 3.13.5 (tags/v3.13.5:6cb20a2, Jun 11 2025, 16:15:46) [MSC v.1943 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Ctrl click to launch VS Code Native REPL >>> name = "ada lovelace" >>> print(name.title()) Ada Lovelace >>> exit() (seismic-py3.13) C:\Projects\MAST_lab\SeismicMast>
Notice that the terminal prompt displays the location and version of my python interpreter and the current working directory followed ">". Is this a better answer to your question?

When posting a question about code it is usually a good idea to post the code to provide context. You should also describe the steps taken to demonstrate the problem you are seeing. It is difficult to answer a question when you don't even know what the question is. Under "Help" you can read about how to ask a good question and what to include in a post. For convenience these are the links.

How to ask a smart question: https://python-forum.io/misc.php?action=help&hid=19
What to include in a post: https://python-forum.io/misc.php?action=help&hid=20
StephCreatesCode likes this post
Reply
#3
I use Idle, which comes free with Python as a try-me-out shell.

Start Idle from a terminal, (I am using bash), like this:

Quote:(GPE) peterr@peterr-Modern-15-B7M:~/PVE$ python3 -m idlelib.idle

Try starting Idle and see if you have any luck!

Can confirm: no number

name = 'ada lovelace'
print(name.title())
print(name.upper())
print(name.split())
print(name.strip())
A tip: contact the spirit of Augusta Ada Byron and ask her what's wrong. As the world's first computer programmer, (or should that be programmeress?) she may know what's up!
StephCreatesCode likes this post
Reply
#4
(Jan-21-2026, 04:30 PM)deanhystad Wrote: What do you mean by "No matter what kind of variable I write (message, name)"? If you are printing to stdout, I would expect that you are seeing message followed by name in the terminal. If message == "Hello" your code would print "Hello Ada Lovelace". I could be interpreting your post incorrectly.

If you are running Python in a VSCode terminal, I would expect something like this:
Output:
(seismic-py3.13) C:\Projects\MAST_lab\SeismicMast>python Python 3.13.5 (tags/v3.13.5:6cb20a2, Jun 11 2025, 16:15:46) [MSC v.1943 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Ctrl click to launch VS Code Native REPL >>> name = "ada lovelace" >>> print(name.title()) Ada Lovelace >>> exit()
(seismic-py3.13) C:\Projects\MAST_lab\SeismicMast>[/output]
Notice that the terminal prompt displays the location and version of my python interpreter and the current working directory followed ">". Is this a better answer to your question?

When posting a question about code it is usually a good idea to post the code to provide context. You should also describe the steps taken to demonstrate the problem you are seeing. It is difficult to answer a question when you don't even know what the question is. Under "Help" you can read about how to ask a good question and what to include in a post. For convenience these are the links.

How to ask a smart question: https://python-forum.io/misc.php?action=help&hid=19
What to include in a post: https://python-forum.io/misc.php?action=help&hid=20

Thank you for your answer. I have read the help links.

This is what I wrote:

name = 'ada lovelace'
print(name.title())
first_name = 'stephanie'
last_name = 'van den broek'
full_name= f'{first_name} {last_name}'
print(f'Hello,{full_name.title()}!')
print('Hello:\n\tStephanie\n\tvan\n\tden\n\tBroek')
This is my full output in the terminal:

Output:
PS C:\Users\Stephanie\OneDrive\Bureaublad\python_work> c:; cd 'c:\Users\Stephanie\OneDrive\Bureaublad\python_work'; & 'c:\Users\Stephanie\AppData\Local\Python\pythoncore-3.14-64\python.exe' 'c:\Users\Stephanie\.vscode\extensions\ms-python.debugpy-2025.18.0-win32-x64\bundled\libs\debugpy\launcher' '51510' '--' 'c:\Users\Stephanie\OneDrive\Bureaublad\python_work\name.py' y-2025.18.0-win32-x64\x5cbundled\x5clibs\x5cdebugpy\x5clauncher' '51510' '--' 'c:\x5cUsers\x5cStephanie\x5cOneDrive\x5cBureaublad\x5cpython_work\x5cname.py' ;903668b9-c5b7-4d81-802b-62112f855f31Ada Lovelace Hello,Stephanie Van Den Broek! Hello: Stephanie van den Broek
Did something went wrong in the process of installing Python and/or VS code? Or did I make a mistake in storing the files? What do ' c:; cd ' mean in this context? Maybe it is good to note that I am learning Python via a pdf called Matthes E. Python Crash Course.A Hands-On,..Programming 3ed 2022. I am currently on page 23.
Reply
#5
Looks like a debugger attached to your Python-Interpreter.
You could run normally or in debug mode, which should show more verbose output. Maybe also this strange numbers, which looks like a UUID4.

UUID are randomly generated strings, which should not collide with other randomly generated UUIDs.
Most are time based + some randomness. Maybe the debugger sends this for each line of output.
StephCreatesCode likes this post
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  under VS Code: the terminal does not recognize "1+1" as a command Rahzan 4 59 May-01-2026, 01:53 PM
Last Post: Rahzan
  problem in output of a snippet code akbarza 2 1,990 Feb-28-2024, 07:15 PM
Last Post: deanhystad
  Code is returning the incorrect values. syntax error 007sonic 6 4,270 Jun-19-2023, 03:35 AM
Last Post: 007sonic
  Is the following code returning a generator expression? quazirfan 8 4,278 Apr-11-2023, 11:44 PM
Last Post: quazirfan
  I cannot able to see output of this code ted 1 1,732 Feb-22-2023, 09:43 PM
Last Post: deanhystad
  Python VS Code: using print command twice but not getting output from terminal kdx264 4 3,003 Jan-16-2023, 07:38 PM
Last Post: Skaperen
  why I dont get any output from this code William369 2 2,233 Jun-23-2022, 09:18 PM
Last Post: William369
  How can I organize my code according to output that I want ilknurg 1 2,250 Mar-11-2022, 09:24 AM
Last Post: perfringo
  For loops returning wrong output Nighthound21 1 2,890 May-03-2021, 03:43 AM
Last Post: deanhystad
  Why this code not getting desired output ? MDRI 2 3,975 Sep-18-2020, 02:11 AM
Last Post: MDRI

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020