Python Forum
python console executes a file that PyCharm cannot execute
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python console executes a file that PyCharm cannot execute
#1
Hi all. Here at first the file that works well with python console........................................................................................................GCC 5.4.0 20160609] on linux
num1=1.5;num2=6.3
sum=num1+num2
template='{0}, plus {1} gives us {2}'
template.format(num1,num2,sum)
'1.5, plus 6.3 gives us 7.8'


# file2.py

num1=1.5;num2=6.3
sum=num1+num2
template='{0}, plus {1} gives us {2}'
template.format(num1,num2,sum)
print(template)#not correct, but what else ??
Reply


Messages In This Thread
python console executes a file that PyCharm cannot execute - by sylas - Jun-09-2017, 04:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  updating pip, python - understanding terminal and pycharm. endlessnameless 0 194 Jun-24-2024, 05:48 AM
Last Post: endlessnameless
  In Console,Python anna17 0 321 Mar-23-2024, 08:24 PM
Last Post: anna17
  Failed to execute child process (No such file or directory) uriel 1 1,776 Sep-15-2022, 03:48 PM
Last Post: Gribouillis
  Can't update new python version on Pycharm GOKUUUU 6 4,218 Jul-23-2022, 09:24 PM
Last Post: GOKUUUU
  How To Set Up And Execute A Python File knight2000 4 2,165 May-31-2022, 10:02 AM
Last Post: Larz60+
  Python Flask Realtime system printout (console) ffmpeg jttolleson 3 3,187 Apr-18-2022, 06:39 PM
Last Post: jttolleson
  console pwd file kucingkembar 4 1,769 Jan-09-2022, 08:31 PM
Last Post: kucingkembar
  execute python script guy7200 1 1,689 Oct-25-2021, 09:55 PM
Last Post: Axel_Erfurt
  How to use GPU in Python or Pycharm? plumberpy 2 14,035 Oct-11-2021, 12:57 PM
Last Post: plumberpy
  Cannot install tensorflow, numpy etc in Pycharm with Python 3.10 plumberpy 2 3,573 Oct-07-2021, 05:33 AM
Last Post: plumberpy

Forum Jump:

User Panel Messages

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