Skip to content

Instantly share code, notes, and snippets.

@de-sh
Last active November 4, 2017 04:16
Show Gist options
  • Save de-sh/f9a98c7ef8f090180d41c8baf5b71aff to your computer and use it in GitHub Desktop.
Save de-sh/f9a98c7ef8f090180d41c8baf5b71aff to your computer and use it in GitHub Desktop.
A question to try out your skills by coding example problems.

A collection of Python questions to begin problem solving

  1. Make use of Python functions to build a list of objects(numbers and strings) input by the user as a string consisting of 'comma'(",") seperated values. 4 marks.

Bonus convert string to int if value is a number. 2 marks

  1. Make a string containing the roll number, name and unique 3 digit number input as lists each containing number(roll), string(name) and tuple(UID) 6 marks.

  2. Write a Python function to print the contents of a list into a file as a string of values seperated by comma. Use str() to convert non string values to string. 4 marks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment