97.7k views
1 vote
What are the following values of c in the code? myCourse="CISC 181" for c in myCourse: print(c)

User Nilo
by
7.7k points

1 Answer

2 votes

Final answer:

The values of c in the code are 'C', 'I', 'S', 'C', ' ', '1', '8', '1'.

Step-by-step explanation:

The code provided is using a for loop to iterate over each character in the variable myCourse. The value of c represents each character in myCourse one at a time. So, the values of c in this code are 'C', 'I', 'S', 'C', ' ', '1', '8', '1'.

User Whitfiea
by
7.1k points