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

Multiplying a list

P: 9
How can i read from keyboard an integer followed by a list of length consisting of floats?

Is there a single line command for that or must it be done separately?

Is a for loop applicable?
Dec 8 '13 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
It will fail on the first line with just a single double quote character.

You assigned to identifier "x" an integer and then assigned it to a list of floats. Did you intend to have a separate integer and list?

You never call multiply.

Function multiply has arguments "l" and "val" but they are not used.
Dec 8 '13 #2

Post your reply

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