Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
Python
SQL
Shell
Markdown
YAML
JSON
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
TypeScript
Perl
Lua
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#Задача 5 #Напишете функция, която получава два списъка като параметър и връща списък, # който съдържа елементи от двата списъка. def input_list (lists): list_elements = [] elements = input() while elements != "stop": list_elements.append(elements) elements = input() return list_elements def concatenating_list (list_one, list_second): all_list = [] all_list = list_one + list_second return all_list first_list = input_list(print("PLease enter elements for first list or 'stop' for end: ")) second_list = input_list(print("PLease enter elements for second list or 'stop' for end: ")) print(f"The combined list is: {concatenating_list(first_list, second_list)}")
Mark as private
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year