Answer:
Here you go, Change it however you'd like :)
Explanation:
import random as r
def play_round(p1, p2):
cards = [1,2,3,4,5,6,7,8,9,10,"J","Q","K","A"]
play1 = r.choice(cards)
play2 = r.choice(cards)
while play1 == play2:
play1 = r.choice(cards)
play2 = r.choice(cards)
if cards.index(play1) > cards.index(play2):
return f"{p1}'s Card: {play1}\n{p2}'s Card: {play2}\nThe Winner is {p1}"
else:
return f"{p1}'s Card: {play1}\n{p2}'s Card: {play2}\nThe Winner is {p2}"
print(play_round("Bob","Joe"))
Answer:
Can be executed on multiple platforms.
Explanation:
A program is portable if it is not platform dependent. In other words, if the program is not tightly coupled to a particular platform, then it is said to be portable. Portable programs can run on multiple platforms without having to do much work. By platform, we essentially mean the operating system and hardware configuration of the machine's CPU.
Examples of portable programs are those written in;
i. Java
ii. C++
iii. C
/etc/samba/smb.conf is the file you can edit on a linux system to configure shared folders using samba.
<h3>What is a L
inux system ?</h3>
- A Unix-like operating system (OS) for desktops, servers, mainframes, mobile devices, and embedded devices, Linux is open source and user-developed.
- One of the most broadly supported operating systems, it is supported on virtually all popular computing platforms, including x86, ARM, and SPARC.
- Windows OS is a for-profit operating system, whereas Linux is an open-source alternative. In contrast to Windows, which lacks access to the source code, Linux allows users to modify the code as needed.
- Applications, interfaces, programs, and software are all produced through Linux programming. Desktops, real-time apps, and embedded devices frequently employ Linux code.
- Programmers can learn about the Linux kernel for free online, enabling them to use, modify, and develop Linux without restriction.
Learn more about linux system refer to :
brainly.com/question/25480553
#SPJ4
Credible websites usually end in the domain name .org or .edu