Question: I've finished the program, but I am unable to fulfill a requirement. How do I iterate through the collection displaying the output as a complete
I've finished the program, but I am unable to fulfill a requirement. How do I iterate through the collection displaying the output as a complete sentence using each value, using the fstring format to control the output?
Im using python. This is the code so far:
proglang CCC#"Carbon","Kotlin","Java","Rust","Python","Fortran","Bash","PHP"Basic","GoF#"Dart","Swift","Ruby","Julia","Scala","Haskell","LOLCode"
printThe thing of languages is strproglang
printWait let's try that again.
The thing of languages is: end
for prog in proglang:
if prog proglang:
printprog end
else:
printand prog
gnalgorp proglang::
print
The reverse thing of languages is: end
for prog in gnalgorp:
if prog gnalgorp:
printprog end
else:
printand prog
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
