By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,400 Members | 1,290 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,400 IT Pros & Developers. It's quick & easy.

Pycharm output issue

P: 4
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.

Expand|Select|Wrap|Line Numbers
  2.     x="volvo"
  3.     def myfunc():
  4.     global x
  5.     x="audi"
  6.     print("This is " + x)
  7.     myfunc()
open source software
3 Weeks Ago #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 335
Python is all about indentation.
Expand|Select|Wrap|Line Numbers
  1. x="volvo"
  2. def myfunc():
  3.     global x
  4.     x="audi"
  5.     print("This is " + x)
  6. myfunc()
3 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.