Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #31.8K
2 Posted Topics
file_name = raw_input('Name of the file you will use to encode the your data \n') file_name = file_name+'.txt' fp = open(file_name, 'r') text = fp.read() #create a string that is just the first letter of every word in the sentence then close file output = "" for i in text.split(): …
[CODE]count = 0 num = 0 print ('This program calculates how many times 2 can be factored into the number entered') num = int(input("Enter number : ")) while num > 1: num = num / 2 count = count + 1 print count[/CODE] Here's the simplest program that will do …
The End.