0

Make some story for changing symbols (python turtle graphics)

I've made some symbols like :) and :( by python turtle and now looking for some story to change this symbols one by one is there any suggestion? for example: text: weekend is near ----> shape : :) text:but you have to read in this weekend---->shape: :( feel free about shape cause we can add them

14th Dec 2017, 7:47 PM
Mirana
1 ответ
0
idea. so after printing "weekend is near" you can have : value = x and in the background, have an if (or a switch) statement running where if x ==. the value for turtle changes to: " :(". now. this would work best with a gui and may not work in sololearn console, but generally, you have your program evaluate for 'events'. those events then change the value for your symbol :)
17th Dec 2017, 11:06 PM
Lysis
Lysis - avatar