Question: Question 1 [20 pts]: a- Given a string s, write a short expression for a string that includes s repeated five times. [5 pts] b-

Question 1 [20 pts]: a- Given a string s, write a short expression for a string that includes s repeated five times. [5 pts]

b- Suppose you know x is an integer and ys is a string representing an integer. For instance, x is 3 and ys is '24'. Write code to print out the arithmetic sum of the two. In the example case, 27 would be printed. [5 pts]

c- Suppose you are given a list of words, wordList. Write Python code that will write one line for each word, repeating that word twice. [5 pts] For example if wordList is ['Sami', 'Lama', 'Jad'], then your code would print: Sami Sami Lama Lama Jad Jad

d- Write code to create a Python dictionary (the dict type). Add two entries to the dictionary: Associate the key name with the value Bassel, and associate the key phone with 03666999. [5 pts]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!