Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The key elements in human thinking are not numbers but labels of fuzzy sets. -- L. Zadeh


devel / comp.lang.python / Re: Question again

SubjectAuthor
* Question againaf kh
`- Re: Question againDFS

1
Question again

<mailman.730.1631812751.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=15188&group=comp.lang.python#15188

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: Ak.82...@hotmail.com (af kh)
Newsgroups: comp.lang.python
Subject: Question again
Date: Thu, 16 Sep 2021 05:50:17 +0000
Lines: 95
Message-ID: <mailman.730.1631812751.4164.python-list@python.org>
References: <2c7126a0bc3d4085830a1b434264c2dbPA4P190MB116625A98478F0A4B5670267D8DC9@PA4P190MB1166.EURP190.PROD.OUTLOOK.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 5ANYyKGJd6MwGo+RouF/bgeND1u2r4pXOLeyH7OmGm7w==
Return-Path: <Ak.82009@hotmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=hotmail.com header.i=@hotmail.com header.b=Cj6Lng2C;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.108
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.79; '*S*': 0.01; 'random': 0.05; 'class.':
0.07; 'exit': 0.07; 'that?': 0.07; 'python.': 0.08; 'elif': 0.09;
'question:': 0.09; 'coding': 0.13; 'import': 0.15; '"bad"': 0.16;
'#else': 0.16; '#if': 0.16; 'bye': 0.16; 'fourth': 0.16; 'on!':
0.16; 'sentence,': 0.16; 'python': 0.16; 'says': 0.17;
'subject:Question': 0.19; 'to:addr:python-list': 0.20; 'code':
0.23; 'to:name:python-list@python.org': 0.24; 'python,': 0.25;
'cannot': 0.25; 'again,': 0.26; 'answering': 0.26; "isn't": 0.27;
'else': 0.27; 'coming': 0.27; 'done': 0.28; 'sense': 0.28;
'comment': 0.31; 'question': 0.32; 'answers': 0.32; 'replies':
0.32; 'window': 0.32; 'but': 0.32; "i'm": 0.33; 'hold': 0.33;
"we're": 0.35; 'name:': 0.37; 'really': 0.37; 'added': 0.39;
'least': 0.39; 'hello,': 0.40; 'try': 0.40; 'week': 0.61;
'today,': 0.62; 'here': 0.62; 'between': 0.63; 'skip:b 10': 0.63;
'skip:r 20': 0.64; 'your': 0.64; 'day': 0.66; 'numbers': 0.67;
'bad': 0.67; 'skip:# 10': 0.68; 'lucky': 0.69; 'sentence': 0.69;
'charset:iso-8859-1': 0.73; '&quot;': 0.76; 'subject:again': 0.76;
'reply': 0.77; 'mr.': 0.78; 'received:eop-
eur03.prod.protection.outlook.com': 0.81; '"2"': 0.84; '"no"':
0.84; '"yes"': 0.84; 'extracted': 0.84; 'fifth': 0.84; 'luck':
0.84; 'received:40.92.71': 0.84;
'received:eur03-db5-obe.outbound.protection.outlook.com': 0.84;
'today:': 0.84; 'worry': 0.95
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=HAxmbG3Q83Q6tvTqj9MNDwCFPoqjW3jfm3v8QXIGLkHOJxlmUZUZsvPchwguykD1qQC4lQr6OaojsMwnOId3mlLPK5nIlWDobhIXQ7XXprS0WJ8Wss3szNjLXSKPAJCsLqN258oqs+p7dp2QTURb2T74KufSv0+aTw0eVh8LI/tE6XOMIQHmiyJlAm1JXXEk9GPW9ydqX00ue5oHKeUyaccVmedjsXtENko2FW1Jin4pfPaPZ4RK6MpwV0Z5grwcfawtVYLIDC75KuWZ/yvoyArYRa9/hOSUrVzT8SOLD+97ePp+xtXjOM9zB99YCMtqYqw+VLRamg1IJXrCie2p/w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
bh=LBptoXSdaGOKuec6PxdwviOhtBWXNnwQ7W5Rd9VBRHU=;
b=Qqwc5PJ3m5VyRvxyXgt68oFAK0OW4U9ZRP90LtVpAMFTUKyxJDwyZbzzt49faLWhBznyTUadeXj9spxu7FpXdv3WE633mX5D0dWRec8T6XRT6A1fYrdlngcMGvvu4s45lfwlxdwzYeQziGCxycRFDONVWU0VFMXlRcuRHWCD2B/rjFV2v/BnaF8Xavw4S9cPSj7VW3lPhEJk1A2c+XYkTRej/FCRlhW65peLaHRpDm0WKGMDCC6nKQ6G729Zd3Cms/yj2IvbcCogh/moOgKuyNhk/dafCTBDfX32FkB/oSjCx/sUaSlZ+i0GP9JBn4ETC9RFKvS6yBsKW8CR+TagRQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=LBptoXSdaGOKuec6PxdwviOhtBWXNnwQ7W5Rd9VBRHU=;
b=Cj6Lng2CD2FApILsaM/WY4McNh9uNGldmW0LNb/mdJS/lNUkmZvTHMAB+UN1WFLFVV+5yf0x6uXdHo7eA7qn0Lrzl1U0cMruaETUlB6TE+0Hrfoik3Z8FVtd/5frpE8IB6UFFmnGn+gxNEACn0gVXv+8S8PU4FEN5+WkayCf01efGDGIe9AI6FnTJbOIpISBJPwws2/Eypb9+joRIjfHT60MttX7nHT8r7KJo/cqP6S7kip0rlFten/VFbyGl73iK+DMk25CkGAyN/HyP3JZNs4xeFWL5mxKm5cGwyjzRfmAzrzZ3qkbAYfXNpNRy6L3eZYCaW5ilYsrNouXkm/FUA==
Thread-Topic: Question again
Thread-Index: AQHXqr33AU17BpGvUkWOVjbCPUdmkQ==
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-incomingtopheadermarker: OriginalChecksum:6519D564F7675394173A54F760C8B75AA2ACBE484C451A031483BB6365F8FAC7;
UpperCasedChecksum:2CD8065339DD30E482C62C37757A6F4AB4B73E4EEB3DA9DADBB60379DAF3E702;
SizeAsReceived:6768; Count:42
x-tmn: [0yq9fA+Nw2aOFq5LR+OTUrxba/ijiLVke5rsgR2tqMRrzuq2+Lwj4hcrq30DKaCx]
x-incomingheadercount: 52
x-eopattributedmessage: 1
x-ms-office365-filtering-correlation-id: bce86196-3491-42bb-c0a2-08d978d5dcc7
x-ms-traffictypediagnostic: DB5EUR03HT006:|DB5EUR03HT150:
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: pOmdROVZ8VyW7L27j6GICtEiKBl1UFnG0RTBclyk4SDNsgSdyCPvZDogizhRU6ck0YBM59FK6xVuZ+xXlzsRV8Z3DGhmYU7kTdfGz1aWvf3SqTJq1iYcs4bgLH0hLw9La0VEFnz46Jw0f4qI7NBVHhDnapDjj8HKUvKlweucMjBC6XIWYJ0Pedz2YKePFoCLRt61Xoi7Vz8eyE0Cptw82VgBlIGTXINxOCH+CXAS/oWahKBCQbZ3xHawMD2oWHggIo6q+TUk8oDW8JzyDKHLwHyQ2c1W0H+sAeZ7OPUFFe3wO3TCFHwrWdk/0rGGLqby011yNt84Y67A0UIhe6njhw2OzqTq+wY/nVEuvzda9CkkQ2pXA3tv5oX1wN4aijJlOqxByCYYgR3legko3u2L1pQMcnZOAF9dg1mRLskyY3dlgZgm0rQUiZRCu8PxVt2l
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: VME0fFpLPMmd2dhGa8IvsGueZQUq2MRfLDwGoittSYhAJdqm8Il9DlNNS6lGaXTc0FdtK23auM9W1anl9HhzfJSaHUIlqJejpxqablDDpOtp3ODwCdIcFIKmPcWpln2dRFtMqeBkg2P6lAioAPiluSDNmsuFue6/KqyRqY2g8UrdRiveUPymPVnOtaqnkYOaODWqdO9ztQFg8NZAVrgrXg==
suggested_attachment_session_id: 7232a22b-4e57-2128-d891-b88410c4ecdc
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-office365-filtering-correlation-id-prvs: 1dda263a-e8f1-454f-8634-08d978d5b28f
x-ms-exchange-transport-forked: True
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT052.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: bce86196-3491-42bb-c0a2-08d978d5dcc7
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2021 05:50:17.6046 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR03HT150
X-Mailman-Approved-At: Thu, 16 Sep 2021 13:19:10 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <2c7126a0bc3d4085830a1b434264c2dbPA4P190MB116625A98478F0A4B5670267D8DC9@PA4P190MB1166.EURP190.PROD.OUTLOOK.COM>
 by: af kh - Thu, 16 Sep 2021 05:50 UTC

Hello,
I was doing some coding on a website called replit then I extracted the file, and opened it in Python. For some reason, after answering 'no' or 'yes' after the last sentence I wrote, the Python window shut off, in replit I added one more sentence, but it isn't shown on Python, it just shuts off. Why is that? please reply to me soon since I need to submit it as an assignment for my class.

Code on replit:
#Title: Week 2: Chatbot with personality
#Author: Afnan Khan
#Date:9/15/21
#Description: Ask at least 3 questions to the user
#and create a creative topic

#Gives greetings to the user
import random

greetings = ["Hello, I'm Mr. ChatBot!", "Hi, I'm Mr. ChatBot!", "Hey~, I'm Mr. ChatBot!"]
comment = random.choice(greetings)
print(comment)
#Learn about the user's Name: First question
name = input("What is your name? ")

#Greet the User
print("Nice to meet you, " + name)

#Ask the user about their day: Second question
print("How is your day going? ")

#The user replies
reply = input()

#If user says 'amazing', reply with 'I am glad!'
if reply == "amazing" :
print("I am glad!")

#If user says 'Alright', reply with 'that's good'
elif reply == "alright" :
print("that's good")

#If user says 'bad', reply with 'Do not worry things will get better'
elif reply == "bad" :
print("Do not worry things will get better")

#Else than that type 'I see'
else :
print("I see!")

#Ask to pick between numbers 1~10 to see if you will get lucky today: Third question
number = input("Please pick between numbers 1~10 to see your luck for today: ")

#From number 1~3 and an answer
if number == "1" or number == "2" or number == "3" :
print("You're in greeeeat luck today!")

#From number 4~7 and an answer
elif number == "4" or number == "5" or number == "6" :
print("damn, bad luck is coming your way")

#From number 8~10 and an answer
elif number == "7" or number == "8" or number == "9" or number == "10" :
print("I cannot sense any luck today, try again next time")

#Add a statement and question: Fourth question
print("That will be all for today's chitchat, woohooo! would you like to exit the chat?")

#User says 'yes'
reply = input()

#If user says 'yes' reply 'wait hold on! are you really leaving??': Fifth question
if reply == "yes" :
print("Wait hold on! are you really leaving??")

#User answers
answer = input()

#If user says 'yes' again, reply 'fine! bye then!'
if answer == "yes" :
print("Fine! bye then!")

#Other than that if user says 'no', reply 'just kidding we're done here haha'
elif answer == "no" :
print("just kidding we're done here haha")

Regards,
Aya

Re: Question again

<o7L0J.5789$PE4.1096@fx11.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=15189&group=comp.lang.python#15189

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
Subject: Re: Question again
Newsgroups: comp.lang.python
References: <2c7126a0bc3d4085830a1b434264c2dbPA4P190MB116625A98478F0A4B5670267D8DC9@PA4P190MB1166.EURP190.PROD.OUTLOOK.COM>
<mailman.730.1631812751.4164.python-list@python.org>
From: nos...@dfs.com (DFS)
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <mailman.730.1631812751.4164.python-list@python.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Lines: 88
Message-ID: <o7L0J.5789$PE4.1096@fx11.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Thu, 16 Sep 2021 17:26:44 UTC
Organization: blocknews - www.blocknews.net
Date: Thu, 16 Sep 2021 13:26:44 -0400
X-Received-Bytes: 3821
X-Original-Bytes: 3770
 by: DFS - Thu, 16 Sep 2021 17:26 UTC

On 9/16/2021 1:50 AM, af kh wrote:
> Hello,
> I was doing some coding on a website called replit then I extracted the file, and opened it in Python. For some reason, after answering 'no' or 'yes' after the last sentence I wrote, the Python window shut off, in replit I added one more sentence, but it isn't shown on Python, it just shuts off. Why is that? please reply to me soon since I need to submit it as an assignment for my class.
>
> Code on replit:
> #Title: Week 2: Chatbot with personality
> #Author: Afnan Khan
> #Date:9/15/21
> #Description: Ask at least 3 questions to the user
> #and create a creative topic
>
> #Gives greetings to the user
> import random
>
> greetings = ["Hello, I'm Mr. ChatBot!", "Hi, I'm Mr. ChatBot!", "Hey~, I'm Mr. ChatBot!"]
> comment = random.choice(greetings)
> print(comment)
> #Learn about the user's Name: First question
> name = input("What is your name? ")
>
> #Greet the User
> print("Nice to meet you, " + name)
>
> #Ask the user about their day: Second question
> print("How is your day going? ")
>
> #The user replies
> reply = input()
>
> #If user says 'amazing', reply with 'I am glad!'
> if reply == "amazing" :
> print("I am glad!")
>
> #If user says 'Alright', reply with 'that's good'
> elif reply == "alright" :
> print("that's good")
>
> #If user says 'bad', reply with 'Do not worry things will get better'
> elif reply == "bad" :
> print("Do not worry things will get better")
>
> #Else than that type 'I see'
> else :
> print("I see!")
>
> #Ask to pick between numbers 1~10 to see if you will get lucky today: Third question
> number = input("Please pick between numbers 1~10 to see your luck for today: ")
>
> #From number 1~3 and an answer
> if number == "1" or number == "2" or number == "3" :
> print("You're in greeeeat luck today!")
>
> #From number 4~7 and an answer
> elif number == "4" or number == "5" or number == "6" :
> print("damn, bad luck is coming your way")
>
> #From number 8~10 and an answer
> elif number == "7" or number == "8" or number == "9" or number == "10" :
> print("I cannot sense any luck today, try again next time")
>
> #Add a statement and question: Fourth question
> print("That will be all for today's chitchat, woohooo! would you like to exit the chat?")
>
> #User says 'yes'
> reply = input()
>
> #If user says 'yes' reply 'wait hold on! are you really leaving??': Fifth question
> if reply == "yes" :
> print("Wait hold on! are you really leaving??")
>
> #User answers
> answer = input()
>
> #If user says 'yes' again, reply 'fine! bye then!'
> if answer == "yes" :
> print("Fine! bye then!")
>
> #Other than that if user says 'no', reply 'just kidding we're done here haha'
> elif answer == "no" :
> print("just kidding we're done here haha")
>
>
> Regards,
> Aya

I don't understand your issue, but this code runs fine for me.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor