KEngine | A unity asset bundle framework with LGPL license | Game Engine library
kandi X-RAY | KEngine Summary
kandi X-RAY | KEngine Summary
An official fork from CosmosEngine: CosmosEngine的官方改名、改进版.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of KEngine
KEngine Key Features
KEngine Examples and Code Snippets
Community Discussions
Trending Discussions on KEngine
QUESTION
jEngines = [
[["Aerotech 54mm Motor (J1799N)"], ["0.6"], ["1799"], ["1090"], ["540"]],
[["Cesaroni 54mm Motor (J760)"], ["1.7"], ["760"], ["1076"], ["576"]],
[["Aerotech 54mm Motor (J401FJ)"], ["2.8"], ["401"], ["912"], ["511"]],
[["Aerotech 54mm Motor (J800T)"], ["1.6"], ["800"], ["1134"], ["595"]],
[["Aerotech 38mm Motor (J825R)"], ["1.2"], ["825"], ["878"], ["497"]],
[["Cesaroni 38mm Motor (J94)"], ["6.8"], ["94"], ["660"], ["372"]],
[["Aerotech 38mm Motor (J425R)"], ["1.6"], ["425"], ["631"], ["364"]],
[["Aerotech 38mm Motor (J500G)"], ["1.4"], ["500"], ["654"], ["375"]],
[["Aerotech 38mm Motor (J420)"], ["1.6"], ["420"], ["635"], ["345"]],
[["Aerotech 38mm Motor (J340M)"], ["1.8"], ["340"], ["577"], ["365"]]
]
kEngines = [
[["Aerotech 54mm Motor (K456DM)"], ["2.9"], ["456"], ["1484"], ["866"]],
[["Aerotech 54mm Motor (K2050ST)"], ["0.7"], ["2050"], ["2086"], ["1292"]],
[["Cesaroni 54mm Motor (K300)"], ["8.4"], ["300"], ["2270"], ["1265"]],
[["Cesaroni 54mm Motor (K260)"], ["8.7"], ["260"], ["2047"], ["1149"]],
[["Cesaroni 54mm Motor (K1200)"], ["1.7"], ["1200"], ["1631"], ["960"]],
[["Cesaroni 54mm Motor (K2045)"], ["0.7"], ["2045"], ["1290"], ["716"]],
[["Cesaroni 54mm Motor (K940)"], ["1.8"], ["940"], ["1366"], ["768"]],
[["Cesaroni 54mm Motor (K630)"], ["2.7"], ["630"], ["1410"], ["912"]]
]
def heightPrint():
rEngine = input("Pick a class of engine a-l (lowercase):")
rEngine= rEngine+("Engines")
print("You have chosen class {}".format(rEngine))
print("These are the engines in class {}".format(rEngine))
for x in range 20:
print(eval(rEngine[0][x]))
...ANSWER
Answered 2019-Dec-18 at 12:42IMPORTANT EDIT: Using eval()
is bad practice as I learned. If you are the only person to ever use this, the solution below is fine, but if other people will access this tool, this approach is dangerous, as inputting print(1)#
will make the program print a 1 with all the implications that come with it. The code can be fixed by checking that the input character is within a range of allowed inputs after receiving the input
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install KEngine
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page