Question

How can I change my username so that the getuser Python output is different? I am...

How can I change my username so that the getuser Python output is different? I am using a windows pc

import datetime
import getpass
print("\n\nFinished execution at ", datetime.datetime.now())
print(getpass.getuser())

Homework Answers

Answer #1

ANSWER (AS PER WINDOWS 10)

STEP 1 :- OPEN WINDOWS START MENU AND GO TO SETTINGS.

STEP 2 :- CLICK ON ACCOUNTS -> MANAGE MY MICROSOFT ACCOUNT.

NOTE:- MICROSOFT ACCOUNT WEBPAGE WILL OPEN ON YOUR BROWSER.

STEP 3 :- CLICK ON MORE ACTIONS -> EDIT PROFILE (FROM DROP DOWN MENU).

STEP 4 :- EDIT NAME (UNDER YOUR CURRENT ACCOUNT NAME)

STEP 5:- NOW ENTER FIRST AND LAST NAME AND SAVE.

RESTART YOUR PC TO SEE THE EFFECT.

NOW YOU CAN AGAIN RUN THE PYTHON CODE AND YOU WILL GET THE NEW USERNAME THAT YOU HAVE ASSIGNED.

##### FOR ANY QUERY, KINDLY GET BACK, THANKYOU. #####

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
I am a student taking python programming. Can this problem be modified using the define main...
I am a student taking python programming. Can this problem be modified using the define main method, def main()? import random #function definition #check for even and return 0 if even def isEven(number): if(number%2==0): return 0 #return 1 if odd else: return 1 #count variables even =0 odd = 0 c = 0 #loop iterates for 100 times for i in range(100): #generate random number n = random.randint(0,1000) #function call val = isEven(n) #check value in val and increment if(val==0):...
First issue: a) I am trying to create a SQL query so i can list all...
First issue: a) I am trying to create a SQL query so i can list all the items that a user has bought b)I am trying to show how much it will cost in total for user My tables: Table user(user_id, username, shipping_address) Table item(item_id, item, pricing) Table receipt(r_id, user_id, date_current) Table rDetailing(r_id, item_id, item_in, amount_of_item)
Python Function: How to format phone number "9293827827" to "(929) 382-7827 in python. My code so...
Python Function: How to format phone number "9293827827" to "(929) 382-7827 in python. My code so far: phone_number = input("Enter phone number (numbers only): ") phone_number_formatted = ?????? print(phone_number_formatted)
Python please debug each python block. Do not change the algorithm. You can add statements or...
Python please debug each python block. Do not change the algorithm. You can add statements or you can modify existing python statements. # 8) Duplicate characters that are NOT vowels. Output should be apppplle 20 points strobj = 'apple' def strformat(strobj): tempstr='' for i in strobj: if(i in ['a','e','i','o','u']): tempstr = tempstr + i*2    print(strformat(strobj))
how can my organization and I use different approaches to more effectively manage change?
how can my organization and I use different approaches to more effectively manage change?
How do I code these in Python? My final result should be "Monday 4" day =...
How do I code these in Python? My final result should be "Monday 4" day = Monday square = 2 ^ 2 print (square) print(day + square)
Why is my buffer too small? I am compiling a word-definition class and I am having...
Why is my buffer too small? I am compiling a word-definition class and I am having some problems. I am producing an output but I cannot insert another word definition pair without having an error that states: "Buffer is too small". With the output I am producing, I am able to insert a pair(a word and its definition) until the error occurs. When I have searched up the variables I used to add the word and its definition through C++(I...
can someone edit my c++ code where it will output to a file. I am currently...
can someone edit my c++ code where it will output to a file. I am currently using xcode. #include <iostream> #include <cctype> #include <cstring> #include <fstream> using namespace std; bool inputNum(int [],int&,istream&); void multiply(int[],int,int[],int,int[],int&); void print(int[],int,int,int); int main() {ifstream input; int num1[35],num2[35],len1,len2,num3[60],len3=10,i; input.open("multiplyV2.txt"); //open file if(input.fail()) //is it ok? { cout<<"file did not open please check it\n"; system("pause"); return 1; }    while(inputNum(num1,len1,input)) {inputNum(num2,len2,input); multiply(num1,len1,num2,len2,num3,len3); print(num1,len1,len3,1); print(num2,len2,len3,2); for(i=0;i<len3;i++) cout<<"-"; cout<<endl; print(num3,len3,len3,1); //cout<<len1<<" "<<len2<<" "<<len3<<endl; cout<<endl;    } system("pause"); } void...
I am very new to coding and I am trying to understand how I can go...
I am very new to coding and I am trying to understand how I can go about connecting my Java Program to my Java GUI? I built my JAVA program using eclipse, I created a database using mysql workbench and connected the two (java program and mysql database). I also created two GUI interfaces using Netbeans but Im not sure how to bring these together?
In Python (using pandas and numpy) I am trying to clean CSV data so it adheres...
In Python (using pandas and numpy) I am trying to clean CSV data so it adheres to a strict coding system instead of free response. More specifically, how would I code a simple rule based system to handle the various spellings and word choices that represent the following statuses: Never married Divorced Married Widowed Separated
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT