Pycharm output issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowman12
    New Member
    • Mar 2020
    • 4

    Pycharm output issue

    Hi guys, I just started learning python and i write a simple code using function but it is not showing me output in pycharm which i want it show me "Process finished with exit code 0" please help me out. Thanks in advance.

    Code:
        x="volvo"
        def myfunc():
        global x
        x="audi"
        print("This is " + x)
        myfunc()
    open source software
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    Python is all about indentation.
    Code:
    x="volvo"
    def myfunc():
        global x
        x="audi"
        print("This is " + x)
    myfunc()

    Comment

    Working...