Problem in sharing .py file as it is indent based program
Moderators: silvia, selimgunay, Moderators
-
- Posts: 160
- Joined: Mon Feb 02, 2015 6:32 pm
Problem in sharing .py file as it is indent based program
As, I shared a python file, there will be problem in running a file shared here. The python program is indent based. So, the program would not run or may result erroneous as it will affect the loops. So, how can we share the files
Prafulla Malla, Nepal
Praf_malla@hotmail.com
Praf_malla@hotmail.com
Re: Problem in sharing .py file as it is indent based program
Good point. I enabled BBcode, so now you should be able to use delimiters around your Python code
app.php/help/bbcode#f2r1
For example:
app.php/help/bbcode#f2r1
For example:
Code: Select all
for i in range(5):
print(i)
-
- Posts: 160
- Joined: Mon Feb 02, 2015 6:32 pm
Re: Problem in sharing .py file as it is indent based program
Yes, the problem has been solved. Thanks Prof. Scott
Steps
--------------
1. Paste the code.
2. Select the code that you have pasted.
3. Click on the the the button </> just below the subject.
4. Submit
Steps
--------------
1. Paste the code.
2. Select the code that you have pasted.
3. Click on the the the button </> just below the subject.
4. Submit
Prafulla Malla, Nepal
Praf_malla@hotmail.com
Praf_malla@hotmail.com