Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: call python function
Post: call python function

I created a .py file, the code is a function that simply calculates v*p def amount(v,p): amt=v*p return amtnow i saved it as calc_val.py , i am using windows 7, so from dos prompt i go to the...
python1980 General Coding Help 1 2,736 Dec-06-2017, 09:13 PM
    Thread: IndentationError: expected an indented block
Post: RE: IndentationError: expected an indented block

my .py file has exactly this, pls let me know why i am unable to attach the .py file. for e, f in e2f(items): f2e(f)=ewhen i create the empty directory in python interpretor and call the file, i ...
python1980 Homework 3 7,746 Dec-03-2017, 09:51 PM
    Thread: IndentationError: expected an indented block
Post: IndentationError: expected an indented block

I have a list e2f, (english to french), i am trying to create a new directory f2e, i am getting IndentationError: expected an indented block, i used space, tab but not working how do i resolve it ? a...
python1980 Homework 3 7,746 Dec-03-2017, 08:47 PM
    Thread: change only one element of list to upper case
Post: RE: change only one element of list to upper case

yes, my solution works :) maybe i got confused looking at a different error, thanks everyone for your reply..quick question is how do i clear the screen from the python interpretor, do i have to impor...
python1980 General Coding Help 3 11,773 Dec-03-2017, 07:23 PM
    Thread: change only one element of list to upper case
Post: change only one element of list to upper case

Hello I am totally new to python and today learnt about lists, my question is how do i change the case of a particular element in a list p=["mozzarella","cinderalla","salmonella"] I want the list ...
python1980 General Coding Help 3 11,773 Dec-03-2017, 07:10 PM

User Panel Messages

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