Python Forum
Facing problem with Pycharm - Not getting the expected output
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facing problem with Pycharm - Not getting the expected output
#1
Hi there!
I am a beginner who is very interested in learning Python.
So, I have written the following code in pycharm.
project = 'course for beginners'
print(project.upper())
I know it is a very simple code and the result should be "COURSE FOR BEGINNERS". Code runs but I do not get the required output. I have attached the screenshot. Please help me.
So, I have found the solution of problem. But I do not know how to delete this post. Sorry
Yoriz write Sep-09-2022, 05:41 PM:
Please post all code, output and errors (in their entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.

Attached Files

Thumbnail(s)
   
Reply
#2
Threads are not deleted when solutions have been found, they are left for others that may be having the same/or similar problem.
If you want to help others you could say what you did to solve it.
It looks to me like you run main.py instead of project 1.py
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in output of a snippet code akbarza 2 387 Feb-28-2024, 07:15 PM
Last Post: deanhystad
  output shape problem with np.arange alan6690 5 701 Dec-26-2023, 05:44 PM
Last Post: deanhystad
  Facing issue in python regex newline match Shr 6 1,322 Oct-25-2023, 09:42 AM
Last Post: Shr
  problem in output of a function akbarza 9 1,210 Sep-29-2023, 11:13 AM
Last Post: snippsat
  Python Pandas Syntax problem? Wrong Output, any ideas? Gbuoy 2 936 Jan-18-2023, 10:02 PM
Last Post: snippsat
  How to resolve my problem in Pycharm? bshoushtarian 0 863 Sep-26-2022, 11:45 AM
Last Post: bshoushtarian
  Facing Problem while opening a file through command prompt vlearner 4 1,920 Jan-30-2022, 08:10 AM
Last Post: snippsat
  PyCharm dir() not displaying output bodisha 2 1,983 Nov-21-2021, 03:11 PM
Last Post: bodisha
  Threading or pycharm pydev problem Fidgety 2 2,569 Apr-04-2021, 03:28 PM
Last Post: ndc85430
  Facing error while executing below Python code ramu4651 1 5,741 Jan-26-2021, 06:40 PM
Last Post: ibreeden

Forum Jump:

User Panel Messages

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