In the Box the Phrase Project you will be investigating Strings and how to manipulate them. Python has 5 other types of built-in data types the can be managed the same way as Strings. The skill set you will practice here on Strings will allow you to also manipulate: byte sequences, byte arrays, lists, tuples, range objects. ObjectivesThe student will learn and use various String function to manipulate strings. The student will use these skills with some of the other Python Sequence Data Types: byte sequences, byte arrays, lists, tuples, range objects Project OverviewWrite a program that will write a phrase in the shape of a rectangle ( a box ) in the center of the screen. Place a space between each letter on the horizontal line. The determine the screen size of your full console screen. Algorithm Main Steps: (each of these will be a function will be called from the main program.)
You will need to determine the algorithm for each of these methods. Sample output: B o x t h e p h r a s e o s x a r t h h p e e p h h t r a x s o e s a r h p e h t x o B Project Road Map
Hint: Count forwards and backwards at the same timei = int(input ("Enter a number")) for x in range (0,i): print ( str(x) + " " + str(i-x)) In this code, one of the numbers will be off by 1. You will need to subtract on somewhere in this code |
06.0 Python > Python Projects >