Python Forum
Need help getting the output
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help getting the output
#5
Create the following in python code:
  • get input_value
  • create a for loop input_value times with variable name first
  • create a empty string out_str
  • create a inner loop input_value times with variable name second
  • if second equals first
    • add '\\' to out_str
    otherwise
    • add second to out_str
  • output out_str
Reply


Messages In This Thread
Need help getting the output - by aankrose - Apr-10-2019, 04:41 PM
RE: Need help getting the output - by ichabod801 - Apr-10-2019, 05:51 PM
RE: Need help getting the output - by perfringo - Apr-10-2019, 07:12 PM
RE: Need help getting the output - by aankrose - Apr-10-2019, 09:02 PM
RE: Need help getting the output - by perfringo - Apr-11-2019, 04:12 AM
RE: Need help getting the output - by Yoriz - Apr-10-2019, 10:12 PM
RE: Need help getting the output - by ichabod801 - Apr-11-2019, 02:09 AM
RE: Need help getting the output - by aankrose - Apr-11-2019, 05:10 PM
RE: Need help getting the output - by loomski - Apr-11-2019, 07:52 PM
RE: Need help getting the output - by aankrose - Apr-12-2019, 02:35 AM
RE: Need help getting the output - by perfringo - Apr-11-2019, 09:01 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020