Skip to content

Instantly share code, notes, and snippets.

@trishnaguha
Last active December 3, 2016 16:57
Show Gist options
  • Save trishnaguha/9e46c0fdcbfa88919cafa44ce622b666 to your computer and use it in GitHub Desktop.
Save trishnaguha/9e46c0fdcbfa88919cafa44ce622b666 to your computer and use it in GitHub Desktop.
PyLadies Python 101 Problems
Python 101 Problems:
1. Take a LIST of integers and find SUM of the numbers of the list.
Suggestion: pass the list as argument to the function you will define to solve the problem
2. Take a LIST of integers and characters (Alphanumeric) and Find SUM of the numbers of the list.
Suggestion: Create two functions: One function will return number from the list. Another function will find out the sum of the numbers.
3. Find out number of characters in a word without using len method.
Suggestion: Pass the string/word as argument to the function.
4. Take a LIST of integers and find out the smallest number from the list without using sorted method.
Suggestion: Pass the list as argument to the function.
5. Create a File and Write some text in the file. Verify whether the file contains any number or not.
File should be created with code only.
Text should also be written with code :-).
Pass the filename as argument to the function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment